public void ConvertToViewListTest() { CompanyProvider target = new CompanyProvider(); // TODO: Initialize to an appropriate value List <Company> itemlist = new List <Company>(); itemlist.Add(_Company); itemlist.Add(_Company); List <baseCompanyView> expected = new List <baseCompanyView>(); expected.Add(_baseCompanyView); expected.Add(_baseCompanyView); List <baseCompanyView> actual; actual = target.ConvertToViewList(itemlist); Assert.AreEqual(expected.Count, actual.Count); CompareViewObject(expected[0], actual[0]); CompareViewObject(expected[1], actual[1]); }