Example #1
0
        public void AboutPageMessage()
        {
            //var bmi = new BMI();
            //  Assert.AreEqual(BMICalculator.Pages.AboutModel);
            // BMICalculator.Pages.AboutModel
            //var test = new BMICalculator.Pages._Pages_About();
            var test = new BMICalculator.Pages.AboutModel();

            test.Message = "hi";
            Assert.AreEqual(test.Message, "hi");
        }
Example #2
0
        public void AboutPageOnGet()
        {
            // var bmi = new BMI();
            //  Assert.AreEqual(BMICalculator.Pages.AboutModel);
            // BMICalculator.Pages.AboutModel
            //var test = new BMICalculator.Pages._Pages_About();
            var test = new BMICalculator.Pages.AboutModel();

            test.Message = "hi";
            string imessage = "hi";
            // string messgae2 = test.OnGet();
            var about = new AboutModel();

            //var reader = about.;
            // Assert.AreEqual(test.OnGet());

            test.OnGet(imessage);
            //  Assert.IsNotNull(test.OnGet(imessage),null);
        }