public void testPathBuilderWithTwoStrings_shouldJoinWithSlashes() { Utils.PathBuilder builder = new Utils.PathBuilder(); builder.Append("hello").Append("world"); string result = builder.Build(); Assert.AreEqual("/hello/world", result); }
public void testPathBuilderWithOneString_shouldHaveLeadingSlash() { Utils.PathBuilder builder = new Utils.PathBuilder(); builder.Append("hello"); string result = builder.Build(); Assert.AreEqual("/hello", result); }