Browse Source

Added a test that append a normal string

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

+ 6 - 0
JsonGeneratorTests/StringBuilderTests.cpp

@@ -29,6 +29,12 @@ namespace JsonGeneratorTests
             assertResultIs("");
         }
 
+        TEST_METHOD(AppendString)
+        {
+            append("ABCD");
+            assertResultIs("ABCD");
+        }
+
         void append(const char* s)
         {
             sb->append(s);