Beispiel #1
0
        public void TestWhenAddExitTwiceHasTwoTests()
        {
            Reset();
            Phase sut = new Phase("sut");

            sut.AddExit(MultiplyTwoToTestValue);
            sut.AddExit(AddOneToTestValue);
            sut.PerformExit();
            Assert.AreEqual(_testValue, 11);
        }
Beispiel #2
0
        public void TestWhenAddExitActionOnceThenRunsAction()
        {
            Reset();
            Phase sut = new Phase("sut");

            sut.AddExit(AddOneToTestValue);
            sut.PerformExit();
            Assert.AreEqual(_testValue, 6);
        }