public void TestScriptPvfPath() { ScriptPvfPath path1 = new ScriptPvfPath("abc/def.i"); ScriptPvfPath path2 = new ScriptPvfPath("///ABc///def.I//"); ScriptPvfPath pathX = new ScriptPvfPath("///ABc///def.I//a"); ScriptPvfPath pathY = new ScriptPvfPath("abc/def.i/a"); ScriptPvfPath pathXBackslashes = new ScriptPvfPath(@"\\AbC/\/\def.i\a\"); ScriptPvfPath slashes = new ScriptPvfPath(@"//\"); ScriptPvfPath empty = new ScriptPvfPath(""); Assert.That(path1, Is.EqualTo(path2)); Assert.That(path1, Is.Not.EqualTo(pathX)); Assert.That(path1, Is.Not.EqualTo(pathY)); Assert.That(pathX, Is.EqualTo(pathXBackslashes)); Assert.That(slashes, Is.EqualTo(empty)); Assert.That(path1.GetHashCode(), Is.EqualTo(path2.GetHashCode())); }