Beispiel #1
0
        public void InterlocutorRaisedSayIntStringMethod_ContractMethodCalled()
        {
            int    arg1 = 42;
            string arg2 = "42";

            _interlocutor.Raise(CallContract.SayIntStringId, arg1, arg2);
            Assert.IsTrue(_contract.SayIntStringCalled);

            Assert.Multiple(
                () => {
                Assert.AreEqual(arg1, _contract.SayIntArg);
                Assert.AreEqual(arg2, _contract.SayStringArg);
            });
        }
Beispiel #2
0
 public void ProcedureCallNotSubscribed_MockRaises_notThrows()
 {
     _cordMock.Raise(CordInterlocutorMock.ProcedureCallId);
 }