public void Test_Valid_ValidNumbers_FromFile() { FileDataProvider fileDataProvider = new FileDataProvider(); var numbers = fileDataProvider.GetNumbers(matrixPopulator.FilePath); Assert.IsNotNull(numbers); }
public void Should_ThrowException_When_ForInvalidCharactersInFile() { matrixPopulator.FilePath = ConfigurationManager.AppSettings["InValidFilePath"]; FileDataProvider fileDataProvider = new FileDataProvider(); var numbers = fileDataProvider.GetNumbers(matrixPopulator.FilePath); Assert.Fail("An exception is thrown for invalid characters found in the test.prm file."); }