Retrieve LeafOutput operational
This commit is contained in:
@@ -38,5 +38,13 @@ namespace LeafWeb.Core.Tests.Utility
|
||||
var result = str.FilterAlphaNumeric();
|
||||
Assert.That(result, Is.EqualTo("newline"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void FilenameFromPath()
|
||||
{
|
||||
var str = "/full/path/to/file.ext";
|
||||
var result = str.FilenameFromPath();
|
||||
Assert.That(result, Is.EqualTo("file.ext"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user