예제 #1
0
        public void TestWhenAddEntryTwiceHasTwoTests()
        {
            Reset();
            Phase sut = new Phase("sut");

            sut.AddEntry(MultiplyTwoToTestValue);
            sut.AddEntry(AddOneToTestValue);
            sut.PerformEntry();
            Assert.AreEqual(_testValue, 11);
        }
예제 #2
0
        public void TestWhenAddEntryActionOnceThenRunsAction()
        {
            Reset();
            Phase sut = new Phase("sut");

            sut.AddEntry(AddOneToTestValue);
            sut.PerformEntry();
            Assert.AreEqual(_testValue, 6);
        }