PageRenderTime 40ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/mocks/IMethod.cs

#
C# | 28 lines | 9 code | 3 blank | 16 comment | 0 complexity | 1de461b32c57ff17dedc401b2f266340 MD5 | raw file
Possible License(s): GPL-2.0
  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. using System;
  7. namespace NUnit.Mocks
  8. {
  9. /// <summary>
  10. /// The IMethod interface represents an method or other named object that
  11. /// is both callable and self-verifying.
  12. /// </summary>
  13. public interface IMethod : IVerify, ICall
  14. {
  15. /// <summary>
  16. /// The name of the object
  17. /// </summary>
  18. string Name { get; }
  19. /// <summary>
  20. /// Tell the object to expect a certain call.
  21. /// </summary>
  22. /// <param name="call"></param>
  23. void Expect( ICall call );
  24. }
  25. }