public void GetPathPrefixTest_InvalidPath() { string given = "~"; string actual; actual = JSImportReader_Accessor.GetPathPrefix(given); Assert.Fail("Should have thrown ArgumentException."); }
public void GetPathPrefixTest_RootDir() { string given = "~/"; string expected = "~/"; string actual; actual = JSImportReader_Accessor.GetPathPrefix(given); Assert.AreEqual(expected, actual); }
public void GetPathPrefixTest_SubdirPath() { string given = "~/testdir/testfile"; string expected = "~/testdir/"; string actual; actual = JSImportReader_Accessor.GetPathPrefix(given); Assert.AreEqual(expected, actual); }