Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ICallHandler.cs « mocks « NUnitMocks « nunit24 « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c844a0a6c095b4375b55b35ea43d81a8d027387c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ****************************************************************
// Copyright 2007, Charlie Poole
// This is free software licensed under the NUnit license. You may
// obtain a copy of the license at http://nunit.org/?p=license&r=2.4
// ****************************************************************

using System;

namespace NUnit.Mocks
{
	/// <summary>
	/// The ICallHandler interface dispatches calls to methods or
	/// other objects implementing the ICall interface.
	/// </summary>
	public interface ICallHandler
	{		
		/// <summary>
		/// Simulate a method call on the mocked object.
		/// </summary>
		/// <param name="methodName">The name of the method</param>
		/// <param name="args">Arguments for this call</param>
		/// <returns>Previously specified object or null</returns>
		object Call( string methodName, params object[] args );
	}
}