Пример #1
0
        public void TestMethodAddNumber()
        {
            //arrange
            PinController   controller = new PinController();
            CinemaViewModel model      = new CinemaViewModel()
            {
                PinValue = "2"
            };

            //act
            controller.TempData["model"] = model;
            controller.PinViewAddchar("2");
            //assert
            model = (CinemaViewModel)controller.TempData["model"];
            Assert.AreEqual(2, model.PinValue.Length);
        }