예제 #1
0
        public void GetPathPrefixTest_InvalidPath()
        {
            string given = "~";
            string actual;

            actual = JSImportReader_Accessor.GetPathPrefix(given);
            Assert.Fail("Should have thrown ArgumentException.");
        }
예제 #2
0
        public void GetPathPrefixTest_RootDir()
        {
            string given    = "~/";
            string expected = "~/";
            string actual;

            actual = JSImportReader_Accessor.GetPathPrefix(given);
            Assert.AreEqual(expected, actual);
        }
예제 #3
0
        public void GetPathPrefixTest_SubdirPath()
        {
            string given    = "~/testdir/testfile";
            string expected = "~/testdir/";
            string actual;

            actual = JSImportReader_Accessor.GetPathPrefix(given);
            Assert.AreEqual(expected, actual);
        }