Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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]);
        }
Example #4
0
 public void TestResultProviderConstructorTest()
 {
     TestResultProvider target = new TestResultProvider();
 }