public void InvalidCharacters() { Assert.IsFalse(DosPath.IsValidCharacters("\x7F")); Assert.IsFalse(DosPath.IsValidCharacters("\"")); Assert.IsFalse(DosPath.IsValidCharacters("*")); Assert.IsFalse(DosPath.IsValidCharacters("+")); Assert.IsFalse(DosPath.IsValidCharacters(",")); Assert.IsFalse(DosPath.IsValidCharacters("/")); Assert.IsFalse(DosPath.IsValidCharacters(":")); Assert.IsFalse(DosPath.IsValidCharacters(";")); Assert.IsFalse(DosPath.IsValidCharacters("<")); Assert.IsFalse(DosPath.IsValidCharacters("=")); Assert.IsFalse(DosPath.IsValidCharacters(">")); Assert.IsFalse(DosPath.IsValidCharacters("?")); Assert.IsFalse(DosPath.IsValidCharacters("\\")); Assert.IsFalse(DosPath.IsValidCharacters("[")); Assert.IsFalse(DosPath.IsValidCharacters("]")); Assert.IsFalse(DosPath.IsValidCharacters("|")); }
public void ValidCharacters() { Assert.IsTrue(DosPath.IsValidCharacters("ABCDEFGHIJKLMNOPQRSTUVWYXZabcdefghijklmnopqrstuvwyxz0123456789!#$%&'()-@^_`{}~\xFE\x80")); }