示例#1
0
        public void RunTwoMorphsAtTheSameTime()
        {
            var firstSpy  = new MorphSpy();
            var secondSpy = new MorphSpy();

            firstSpy.And(secondSpy).Frame(1);

            Assert.AreEqual(true, firstSpy.WasCalled && secondSpy.WasCalled);
        }
示例#2
0
        public void ChainMultipleAnds()
        {
            var firstSpy  = new MorphSpy();
            var secondSpy = new MorphSpy();
            var thirdSpy  = new MorphSpy();

            firstSpy.And(secondSpy).And(thirdSpy).Frame(1);

            Assert.AreEqual(true, firstSpy.WasCalled && secondSpy.WasCalled && thirdSpy.WasCalled);
        }