12345678910111213141516171819202122 |
- #include "pch.h"
- #include <Text.h>
- #include "CppUnitTest.h"
- using namespace Microsoft::VisualStudio::CppUnitTestFramework;
- using namespace Framework;
- namespace FrameworkTests
- {
- TEST_CLASS (TextTests)
- {
- public:
- TEST_METHOD (AppendStreamTest)
- {
- Text test = "Test";
- test.append() << " " << 1 << " " << 3.14;
- Assert::AreEqual(test.getText(), "Test 1 3.14");
- }
- };
- } // namespace FrameworkTests
|