public void Test_Search_Multi_Truck_From_Vin_Number_String() { IDispatchManager dm = new DispatchManager(); Assert.IsNull(dm.SearchMultiTruck(new Mock.TruckAPI(), string.Empty)); string errorCode = "abc"; Assert.IsNotNull(dm.SearchMultiTruck(new Mock.TruckAPI(), errorCode)[0]); string moreThanFive = "ONE|TWO|THREE|FOUR|FIVE|SIX"; Assert.IsNull(dm.SearchMultiTruck(new Mock.TruckAPI(), moreThanFive)); string correctCodes = "5UXWX7C5*BA|5UXCA7C5*BA|5UEFX7C5*BA"; Assert.AreEqual(dm.SearchMultiTruck(new Mock.TruckAPI(), correctCodes).Count(), 3); }