Text.cpp 469 B

12345678910111213141516171819202122
  1. #include "pch.h"
  2. #include <Text.h>
  3. #include "CppUnitTest.h"
  4. using namespace Microsoft::VisualStudio::CppUnitTestFramework;
  5. using namespace Framework;
  6. namespace FrameworkTests
  7. {
  8. TEST_CLASS (TextTests)
  9. {
  10. public:
  11. TEST_METHOD (AppendStreamTest)
  12. {
  13. Text test = "Test";
  14. test.append() << " " << 1 << " " << 3.14;
  15. Assert::AreEqual(test.getText(), "Test 1 3.14");
  16. }
  17. };
  18. } // namespace FrameworkTests