public void DataListTranslator_ToDataTable_WhenEmptyRecsetName_ExpectError() { //------------Setup for test-------------------------- ErrorResultTO errors; IDataListCompiler compiler = DataListFactory.CreateDataListCompiler(); //------------Execute Test--------------------------- var convertToDataTable = compiler.ConvertToDataTable(null, "", out errors); //------------Assert Results------------------------- Assert.IsNull(convertToDataTable); Assert.AreEqual(1, errors.FetchErrors().Count); Assert.AreEqual("Value cannot be null.\r\nParameter name: recsetName", errors.FetchErrors()[0]); }