public void AddPathTest() { var pathItem = new PathItem(); pathItem.AddPath("root"); pathItem.AddPath("dir"); pathItem.AddPath("subdir"); var expectPathItem = PathSplitter.SplitPath(ExpectedPath); var expected = "/root/dir/subdir"; var act = pathItem.ToString(); Assert.AreEqual(expected, act); Assert.AreEqual(expectPathItem, pathItem); }