public void HasTing() { TingRunner tingRunner = CreateTingRunnerWithSomeRoom(); tingRunner.CreateTing <Animal>("Puma", new WorldCoordinate("SomeRoom", IntPoint.Zero)); Assert.IsTrue(tingRunner.HasTing("Puma")); Assert.IsFalse(tingRunner.HasTing("Donkey")); }
public void RemoveTingUsingName() { TingRunner tingRunner = CreateTingRunnerWithSomeRoom(); tingRunner.CreateTing <Animal>("Bee", new WorldCoordinate("SomeRoom", IntPoint.Zero)); tingRunner.CreateTing <Animal>("Spider", new WorldCoordinate("SomeRoom", IntPoint.Zero)); tingRunner.CreateTing <Animal>("Ant", new WorldCoordinate("SomeRoom", IntPoint.Zero)); tingRunner.RemoveTing("Bee"); Assert.IsFalse(tingRunner.HasTing("Bee")); Assert.IsTrue(tingRunner.HasTing("Spider")); Assert.IsTrue(tingRunner.HasTing("Ant")); }