Esempio n. 1
0
		public virtual void VerifyUnordered(MethodCall[] expectedCalls)
		{
			Iterator4Assert.SameContent(expectedCalls, GetEnumerator());
		}
Esempio n. 2
0
		public virtual void Record(MethodCall call)
		{
			_calls.Add(call);
		}
Esempio n. 3
0
		/// <summary>Asserts that the method calls were the same as expectedCalls.</summary>
		/// <remarks>
		/// Asserts that the method calls were the same as expectedCalls.
		/// Unfortunately we cannot call this method 'assert' because
		/// it's a keyword starting with java 1.5.
		/// </remarks>
		/// <param name="expectedCalls"></param>
		public virtual void Verify(MethodCall[] expectedCalls)
		{
			Iterator4Assert.AreEqual(expectedCalls, GetEnumerator());
		}
Esempio n. 4
0
			public virtual void Verify(MethodCall[] calls)
			{
				producerCalls.Verify(calls);
			}
Esempio n. 5
0
		private MethodCall[] ApplyCalls(int count)
		{
			MethodCall[] expectations = new MethodCall[count];
			for (int i = 0; i < count; ++i)
			{
				expectations[i] = ApplyCall(i);
			}
			return expectations;
		}
Esempio n. 6
0
 private void Verify(MethodCall[] expectedCalls)
 {
     _mockBin.Verify(expectedCalls);
 }
Esempio n. 7
0
 private void Record(MethodCall methodCall)
 {
     Recorder().Record(methodCall);
 }
Esempio n. 8
0
		public static string GenerateMethodCall(MethodCall call)
		{
			return "new MethodCall(\"" + call.methodName + "\", " + GenerateArray(call.args) 
				+ ")";
		}
 private void AssertProviderCalled(MethodCall[] expectedCalls)
 {
     _dummyProvider.Verify(expectedCalls);
 }
Esempio n. 10
0
		private void Record(MethodCall call)
		{
			Recorder().Record(call);
		}
Esempio n. 11
0
		public virtual void VerifyUnordered(MethodCall[] methodCalls)
		{
			_recorder.VerifyUnordered(methodCalls);
		}
Esempio n. 12
0
		public virtual void Verify(MethodCall[] expectedCalls)
		{
			_recorder.Verify(expectedCalls);
		}