public void IsPathRooted_ReturnsFalse_ForRelativePaths(string path) { // Arrange var fileResult = new FilePathResult(path, "text/plain", Mock.Of <IFileSystem>()); // Act var isRooted = fileResult.IsPathRooted(path); // Assert Assert.False(isRooted); }
public void IsPathRooted_ReturnsTrue_ForAbsolutePaths(string path) { // Arrange var fileResult = new FilePathResult(path, "text/plain") { FileProvider = Mock.Of <IFileProvider>(), }; // Act var isRooted = fileResult.IsPathRooted(path); // Assert Assert.True(isRooted); }
public void IsPathRooted_ReturnsFalse_ForRelativePaths(string path) { // Arrange var fileResult = new FilePathResult(path, "text/plain") { FileProvider = Mock.Of<IFileProvider>(), }; // Act var isRooted = fileResult.IsPathRooted(path); // Assert Assert.False(isRooted); }