public void SrmViewModel_setupCorrectly_Succeeds() { var userSrm = new Srm(1, "Straw", 2, 3); var srmVm = new SrmViewModel(userSrm); Assert.IsTrue(srmVm.Correct); }
public void SrmViewModel_setupIncorrectly_Fails() { var srm = new Srm(1, "Straw", 2, 3); var srmVm = new SrmViewModel(srm); Assert.IsFalse(srmVm.Correct); }
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); }