public void should_return_false_if_system_doesnt_exist() { var fakeSystem = Substitute.For <ISystem>(); var systemExecutor = new SystemExecutor(new IConventionalSystemHandler[0]); Assert.False(systemExecutor.HasSystem(fakeSystem)); }
public void should_return_true_if_system_already_exists() { var fakeSystem = Substitute.For <ISystem>(); var systemExecutor = new SystemExecutor(new IConventionalSystemHandler[0]); systemExecutor._systems.Add(fakeSystem); Assert.True(systemExecutor.HasSystem(fakeSystem)); }