/src/NUnit/mocks/IMethod.cs
C# | 28 lines | 9 code | 3 blank | 16 comment | 0 complexity | 1de461b32c57ff17dedc401b2f266340 MD5 | raw file
1// **************************************************************** 2// Copyright 2007, Charlie Poole 3// This is free software licensed under the NUnit license. You may 4// obtain a copy of the license at http://nunit.org 5// **************************************************************** 6 7using System; 8 9namespace NUnit.Mocks 10{ 11 /// <summary> 12 /// The IMethod interface represents an method or other named object that 13 /// is both callable and self-verifying. 14 /// </summary> 15 public interface IMethod : IVerify, ICall 16 { 17 /// <summary> 18 /// The name of the object 19 /// </summary> 20 string Name { get; } 21 22 /// <summary> 23 /// Tell the object to expect a certain call. 24 /// </summary> 25 /// <param name="call"></param> 26 void Expect( ICall call ); 27 } 28}