예제 #1
0
        public void Parse_HierarchyPath_from_string_with_mixed_slashes_and_backslashes()
        {
            // ARRANGE

            TreesorNodePath result = TreesorNodePath.Parse(@"a\b/c");

            // ASSERT

            Assert.AreEqual(HierarchyPath.Create("a", "b", "c"), result.HierarchyPath);
        }
예제 #2
0
        public void Parse_HierarchyPath_from_string_with_slashes()
        {
            // ARRANGE

            TreesorNodePath result = TreesorNodePath.Parse("a/b");

            // ASSERT

            Assert.AreEqual(HierarchyPath.Create("a", "b"), result.HierarchyPath);
        }