Browse Source

Added a test that appends 2 string

Benoît Blanchon 11 năm trước cách đây
mục cha
commit
ca99749f28
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      JsonGeneratorTests/StringBuilderTests.cpp

+ 7 - 0
JsonGeneratorTests/StringBuilderTests.cpp

@@ -35,6 +35,13 @@ namespace JsonGeneratorTests
             assertResultIs("ABCD");
         }
 
+        TEST_METHOD(AppendOneTwoStrings)
+        {
+            append("ABCD");
+            append("EFGH");
+            assertResultIs("ABCDEFGH");
+        }
+
         TEST_METHOD(AppendSpecialChars)
         {
             append("\\\"\/\b\f\n\r");