public void WillNotLaunchMissileSpyWithExpiredLaunchCode() { var missileSpy = new MissileSpy(); var expiredLaunchCodeStub = new ExpiredLaunchCodeStub(); var launchMissile = new LaunchMissile(missileSpy, expiredLaunchCodeStub, new DummyUsedLaunchCodes()); launchMissile.Execute(); missileSpy.LaunchHasBeenCalled().Should().BeFalse(); }
public void WillNotLaunchMissileMockWithExpiredLaunchCode() { var missileMock = new MissileMock(); var expiredLauchCodeStub = new ExpiredLaunchCodeStub(); var launchMissile = new LaunchMissile(missileMock, expiredLauchCodeStub, new DummyUsedLaunchCodes()); launchMissile.Execute(); missileMock.VerifyCodeRedAbort(); }
public void WillNotLaunchMissileWithExpiredLaunchCodeStub() { var dummyMissile = new DummyMissile(); var expiredLaunchCodeStub = new ExpiredLaunchCodeStub(); var launchMissile = new LaunchMissile(dummyMissile, expiredLaunchCodeStub, new DummyUsedLaunchCodes()); launchMissile.Execute(); dummyMissile.Should().NotBeEquivalentTo(new NotImplementedException()); }
public void WillNotLaunchMissileMockWithUsedLaunchCode() { var missileMock = new MissileMock(); var validLaunchCode = new ValidLaunchCode(); var fakeLaunchCodes = new FakeLaunchCodes(); fakeLaunchCodes.add(validLaunchCode); var launchMissile = new LaunchMissile(missileMock, validLaunchCode, fakeLaunchCodes); launchMissile.Execute(); missileMock.VerifyCodeRedAbort(); }