public void Contains_Should_Return_True_If_In_Registry() { var registery = new EntityRegistery(); var record = registery.Create("Test Enntity"); Assert.True(registery.Contains(record.Name)); Assert.True(registery.Contains(record)); }
public void RemoveEntity() { var registery = new EntityRegistery(); var entity = registery.Create("Test Entity"); Assert.True(registery.Contains(entity)); Assert.True(registery.Remove(entity)); Assert.False(registery.Contains(entity)); }
public void Contains_Returns_False_If_System_Is_Not_Added() { var registery = new EntityRegistery(); var system = new TestEntitySystem(); Assert.False(registery.Contains(system)); }
public void Created_Entity_IsAdded() { var registery = new EntityRegistery(); var entity = registery.Create("Test Entity"); Assert.True(registery.Contains(entity)); }
public void Contains_Returns_True_If_System_Is_Added() { var registery = new EntityRegistery(); var system = new TestEntitySystem(); registery.Add(system); Assert.True(registery.Contains(system)); }