예제 #1
0
        public void InvalidAmount_ShouldNotAbleToProcess()
        {
            var twothousand = new TwoThousand();

            twothousand.Add(new Hundered());
            Assert.IsFalse(twothousand.ProcessNode2(2412));
        }
예제 #2
0
        public void FiveHunderedAndTwoThousandOnlyInMachine_InvalidAmount()
        {
            var twothousand = new TwoThousand();

            twothousand.Add(new FiveHunderd());
            Assert.IsFalse(twothousand.ProcessNode2(2400));
        }
예제 #3
0
        public void ValidAmount_ShouldAbleToProcess()
        {
            var twothousand = new TwoThousand();

            twothousand.Add(new Hundered());
            Assert.IsTrue(twothousand.ProcessNode2(2400));
        }