Beispiel #1
0
        public void testPathBuilderWithTwoStrings_shouldJoinWithSlashes()
        {
            Utils.PathBuilder builder = new Utils.PathBuilder();
            builder.Append("hello").Append("world");
            string result = builder.Build();

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

            Assert.AreEqual("/hello", result);
        }