Fix tests in AzToolsFramework now that the Trace bus is hooked

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-07-12 18:03:10 -07:00
parent c13720e255
commit 1dec9d4a9a
18 changed files with 77 additions and 46 deletions
@@ -426,7 +426,9 @@ namespace UnitTest
AZStd::any keyString = AZStd::make_any<AZStd::string_view>("0");
EXPECT_FALSE(propertyTree.GetContainerItem("My New Int", key).IsSuccess());
AZ_TEST_START_TRACE_SUPPRESSION;
EXPECT_FALSE(propertyTree.GetContainerItem("My New List", keyString).IsSuccess());
AZ_TEST_STOP_TRACE_SUPPRESSION(1);
PropertyTreeEditor::PropertyAccessOutcome outcome = propertyTree.GetContainerItem("My New List", key);
EXPECT_TRUE(outcome.IsSuccess());
@@ -446,7 +448,9 @@ namespace UnitTest
AZStd::any value = AZStd::make_any<PropertyTreeEditorTester::PropertyTreeEditorNestedTester>(testUpdate);
EXPECT_FALSE(propertyTree.UpdateContainerItem("My New Int", key, value).IsSuccess());
AZ_TEST_START_TRACE_SUPPRESSION;
EXPECT_FALSE(propertyTree.UpdateContainerItem("My New List", keyString, value).IsSuccess());
AZ_TEST_STOP_TRACE_SUPPRESSION(1);
EXPECT_TRUE(propertyTree.UpdateContainerItem("My New List", key, value).IsSuccess());
PropertyTreeEditor::PropertyAccessOutcome outcome = propertyTree.GetContainerItem("My New List", key);
@@ -464,7 +468,9 @@ namespace UnitTest
AZStd::any keyString = AZStd::make_any<AZStd::string_view>("0");
EXPECT_FALSE(propertyTree.RemoveContainerItem("My New Int", key).IsSuccess());
AZ_TEST_START_TRACE_SUPPRESSION;
EXPECT_FALSE(propertyTree.RemoveContainerItem("My New List", keyString).IsSuccess());
AZ_TEST_STOP_TRACE_SUPPRESSION(1);
PropertyTreeEditor::PropertyAccessOutcome outcomeAdd1 = propertyTree.RemoveContainerItem("My New List", key);
EXPECT_TRUE(outcomeAdd1.IsSuccess());
@@ -755,7 +761,9 @@ namespace UnitTest
EXPECT_TRUE(propertyTree.SetProperty("My Int", anEmpty).IsSuccess());
EXPECT_TRUE(propertyTree.SetProperty("My Negative Short", anEmpty).IsSuccess());
EXPECT_TRUE(propertyTree.SetProperty("My New List", anEmpty).IsSuccess());
AZ_TEST_START_TRACE_SUPPRESSION;
EXPECT_TRUE(propertyTree.SetProperty("My Asset Data", anEmpty).IsSuccess());
AZ_TEST_STOP_TRACE_SUPPRESSION(1);
EXPECT_TRUE(propertyTree.SetProperty("My Test Simple Asset", anEmpty).IsSuccess());
}