2009-12-09 Jb Evain <jbevain@novell.com>
[mcs.git] / nunit24 / NUnitMocks / mocks / ICallHandler.cs
blobc844a0a6c095b4375b55b35ea43d81a8d027387c
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/?p=license&r=2.4
5 // ****************************************************************
7 using System;
9 namespace NUnit.Mocks
11 /// <summary>
12 /// The ICallHandler interface dispatches calls to methods or
13 /// other objects implementing the ICall interface.
14 /// </summary>
15 public interface ICallHandler
17 /// <summary>
18 /// Simulate a method call on the mocked object.
19 /// </summary>
20 /// <param name="methodName">The name of the method</param>
21 /// <param name="args">Arguments for this call</param>
22 /// <returns>Previously specified object or null</returns>
23 object Call( string methodName, params object[] args );