Example #1
0
        public void SrmViewModel_setupCorrectly_Succeeds()
        {
            var userSrm = new Srm(1, "Straw", 2, 3);
            var srmVm   = new SrmViewModel(userSrm);

            Assert.IsTrue(srmVm.Correct);
        }
Example #2
0
        public void SrmViewModel_setupIncorrectly_Fails()
        {
            var srm   = new Srm(1, "Straw", 2, 3);
            var srmVm = new SrmViewModel(srm);

            Assert.IsFalse(srmVm.Correct);
        }
Example #3
0
        public void SrmViewModel_setup_hasPropertiesSet()
        {
            var srm   = new Srm(1, "Straw", 2, 3);
            var srmVm = new SrmViewModel(srm);

            Assert.AreEqual(1, srmVm.Id);
            Assert.AreEqual("Straw", srmVm.Name);
            Assert.AreEqual(2, srmVm.Low);
            Assert.AreEqual(3, srmVm.High);
        }