StringExtensionsTests CheckForCleanFileName Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CheckForCleanFileName()
Examples

[Test]
public void CheckForCleanFileName()
{
    Assert.AreEqual("", GetCleanFileName(null));
    Assert.AreEqual("", GetCleanFileName(""));
    Assert.AreEqual("", GetCleanFileName("   "));
    Assert.AreEqual("PureFilename", GetCleanFileName("PureFilename"));
    Assert.AreEqual("PureFilename", GetCleanFileName("Pure Filename"));
    Assert.AreEqual("FullFilename.ext", GetCleanFileName("FullFilename.ext"));
    Assert.AreEqual("File1.ext", GetCleanFileName("File#1.ext"));
    Assert.AreEqual("FileAB.ext", GetCleanFileName("FileA|B.ext"));
}
See Also