public void LongPathNameThrowsFileNotFound() { string path = System.IO.Path.GetRandomFileName(); Action action = () => FileMethods.GetLongPathName(path); action.ShouldThrow <System.IO.FileNotFoundException>(); }
public void ValidateLongPathNameBehaviors(string value, string expected) { using (new TempCurrentDirectory(@"C:\Users")) { FileMethods.GetLongPathName(value).Should().Be(expected); } }
public void GetLongPathBasic() { string tempPath = FileMethods.GetTempPath(); FileMethods.GetLongPathName(tempPath).Should().NotBeNullOrWhiteSpace(); }