Commits

Matt Oswald committed a95ec61

the logs can now also output aything with to_string, just like the assert methods

Comments (0)

Files changed (2)

Tests/UnitTests/TestsCanOutputAnythingWithToString.cpp

     Check.Contains(result.Actual(), "(5, 0)");
 }
 
+FACT("Testing overloaded << operator")
+{
+    // this will be a compile error if it is not supported
+    Check.True(true) << Point(0, 0);
 }
+
+}

xUnit++/xUnit++/xUnitAssert.h

     template<typename T>
     xUnitAssert &AppendUserMessage(T &&value)
     {
-        *userMessage << std::forward<T>(value);
+        *userMessage << ToString(std::forward<T>(value));
         return *this;
     }