Fix for ReadMesh error reporting

This commit is contained in:
hultonha
2021-04-16 17:30:06 +01:00
parent 102a0e5dc8
commit f552fc7ccd
5 changed files with 38 additions and 20 deletions
+2 -1
View File
@@ -470,6 +470,7 @@ namespace UnitTest
TEST_F(WhiteBoxTestFixture, MeshNotDeserializedWithSkipWhiteSpaceStream)
{
namespace Api = WhiteBox::Api;
using testing::Eq;
Api::InitializeAsUnitCube(*m_whiteBox);
AZStd::vector<AZ::u8> serializedWhiteBox;
@@ -485,7 +486,7 @@ namespace UnitTest
// note: std::stringstream will default to skip white space characters
AZ_TEST_START_TRACE_SUPPRESSION;
EXPECT_FALSE(Api::ReadMesh(*m_whiteBox, whiteBoxStream));
EXPECT_THAT(Api::ReadMesh(*m_whiteBox, whiteBoxStream), Eq(Api::ReadResult::Error));
AZ_TEST_STOP_TRACE_SUPPRESSION(1);
}