public void RunTwoMorphsAtTheSameTime() { var firstSpy = new MorphSpy(); var secondSpy = new MorphSpy(); firstSpy.And(secondSpy).Frame(1); Assert.AreEqual(true, firstSpy.WasCalled && secondSpy.WasCalled); }
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); }