コード例 #1
0
        public void InvokingANewServiceShouldAddItToEventHistory()
        {
            LastServiceCallStatus callStatus = serviceExecution.Invoking(new TestService(), @class.GetMethod("Method").MethodInfo);

            serviceExecution.Invoked(null);
            Assert.AreEqual(1, executionHistory.ServiceCalls.Count);
            Assert.AreEqual(false, callStatus.WasExecuted);
        }
コード例 #2
0
        public void InvokingANewServiceShouldAddItToEventHistory()
        {
            var callStatus = serviceExecution.Invoking(new TestService(), type.GetMethod("Method"));

            serviceExecution.Invoked(null);
            Assert.That(executionHistory.ServiceCalls, Has.Count.EqualTo(1));
            Assert.That(callStatus.WasExecuted, Is.False);
        }