public void Verify_Model_Returns_False() { Datalist.Clear(); bool expected = false; VerifyModel _vf = new VerifyModel(Datalist); bool result = _vf.Show(); Assert.AreEqual(expected, result); }
public void VerifyModel_Returns_True() { Jobs job1 = new Jobs() { day = "April 1", task = "Testing Event", approval = "Approve all STP", responsibility = "*****@*****.**", target = "EOW", week = 1 }; Datalist.Add(job1); bool expected = true; VerifyModel _vf = new VerifyModel(Datalist); bool result = _vf.Show(); Assert.AreEqual(expected, result); }