public void ShouldReturnCorrectExceptionForBadInput() { string input = string.Empty; IFileReader reader = new FileReader(); ArgumentException ex = Assert.Throws<ArgumentNullException>(() => reader.TryGetFile(input)); Assert.Equal("path", ex.ParamName); }
public void ShouldNotReturnTrueIfPathDoesNotExist() { string path = @"C:\Users\Nino\Desktop\test2"; IFileReader fileReader = new FileReader(); var result = fileReader.TryGetFile(path); Assert.Equal(false, result); }