Exemple #1
0
        public void ZeroToNATest_LengthIsNOTZero()
        {
            Park park = new Park(1);
            BookingSubMenuCLI bookingSubMenuCLI = new BookingSubMenuCLI(park);

            int testValue = 25;

            Assert.AreEqual <string>("25", bookingSubMenuCLI.ZeroToNA(testValue));
        }
        public void ToYesOrNo()
        {
            Park park = new Park(1);
            BookingSubMenuCLI bookingSubMenuCLI = new BookingSubMenuCLI(park);

            bool test1Value = true;
            bool test2Value = false;

            Assert.AreEqual <string>("Yes", bookingSubMenuCLI.ToYesOrNo(test1Value));
            Assert.AreEqual <string>("No", bookingSubMenuCLI.ToYesOrNo(test2Value));
        }