public void ConvertToModelTest() { TestResultProvider target = new TestResultProvider(); // TODO: Initialize to an appropriate value baseTestResultView item = _baseTestResultView; TestResult expected = _TestResult; TestResult actual; actual = target.ConvertToModel(item); CompareModelObject(expected, actual); }
public void ConvertToViewTest() { TestResultProvider target = new TestResultProvider(); // TODO: Initialize to an appropriate value TestResult item = _TestResult; baseTestResultView expected = _baseTestResultView; baseTestResultView actual; actual = target.ConvertToView(item); CompareViewObject(expected, actual); }
public void ConvertToViewListTest() { TestResultProvider target = new TestResultProvider(); // TODO: Initialize to an appropriate value List <TestResult> itemlist = new List <TestResult>(); itemlist.Add(_TestResult); itemlist.Add(_TestResult); List <baseTestResultView> expected = new List <baseTestResultView>(); expected.Add(_baseTestResultView); expected.Add(_baseTestResultView); List <baseTestResultView> actual; actual = target.ConvertToViewList(itemlist); Assert.AreEqual(expected.Count, actual.Count); CompareViewObject(expected[0], actual[0]); CompareViewObject(expected[1], actual[1]); }
public void TestResultProviderConstructorTest() { TestResultProvider target = new TestResultProvider(); }