More specific component error messaging and modes for native UI to prevent blocking dialog in some applications

This commit is contained in:
mgwynn
2021-06-23 21:05:17 -04:00
parent e357dea06c
commit fb3940fa31
16 changed files with 186 additions and 37 deletions
+2 -2
View File
@@ -909,14 +909,14 @@ namespace UnitTest
EXPECT_EQ(2, m_entity->GetComponents().size());
}
TEST_F(ComponentDependency, ComponentWithoutDescriptor_FailsDueToMissingDescriptor)
TEST_F(ComponentDependency, ComponentWithoutDescriptor_FailsDueToUnregisteredDescriptor)
{
CreateComponents_ABCDE();
// delete ComponentB's descriptor
ComponentDescriptorBus::Event(azrtti_typeid<ComponentB>(), &ComponentDescriptorBus::Events::ReleaseDescriptor);
EXPECT_EQ(Entity::DependencySortResult::MissingDescriptor, m_entity->EvaluateDependencies());
EXPECT_EQ(Entity::DependencySortResult::DescriptorNotRegistered, m_entity->EvaluateDependencies());
}
TEST_F(ComponentDependency, StableSort_GetsSameResultsEveryTime)