2006-09-30 Marek Sieradzki <marek.sieradzki@gmail.com>
[mono.git] / mcs / nunit20 / mocks / ICallHandler.cs
1 using System;
2
3 namespace NUnit.Mocks
4 {
5         /// <summary>
6         /// The ICallHandler interface dispatches calls to methods or
7         /// other objects implementing the ICall interface.
8         /// </summary>
9         public interface ICallHandler
10         {               
11                 /// <summary>
12                 /// Simulate a method call on the mocked object.
13                 /// </summary>
14                 /// <param name="methodName">The name of the method</param>
15                 /// <param name="args">Arguments for this call</param>
16                 /// <returns>Previously specified object or null</returns>
17                 object Call( string methodName, params object[] args );
18         }
19 }