SDK: Fix unit tests

This commit is contained in:
Lynix
2017-04-22 12:58:14 +02:00
parent c1e9fe7b04
commit c06db7d9c5
4 changed files with 12 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ SCENARIO("EntityOwner", "[NDK][ENTITYOWNER]")
GIVEN("A world & an entity")
{
Ndk::World world;
const Ndk::EntityHandle& entity = world.CreateEntity();
Ndk::EntityHandle entity = world.CreateEntity();
WHEN("We set the ownership of the entity to our owner")
{
@@ -15,14 +15,14 @@ SCENARIO("EntityOwner", "[NDK][ENTITYOWNER]")
THEN("Entity is still valid")
{
REQUIRE(entity.IsValid());
CHECK(entity.IsValid());
}
THEN("Resetting or getting out of scope is no more valid")
{
entityOwner.Reset();
world.Update(1.f);
REQUIRE(!entity.IsValid());
CHECK(!entity.IsValid());
}
}
}