public void deinitialize_spy_systme() { var s = new DeinitializeSystemSpy(); Assert.AreEqual(s.didDeinitialize, 0); s.Deinitialize(); Assert.AreEqual(s.didDeinitialize, 1); }
public TestKernelA() { Pool = new Pool <ITestPool>(new TestComponentA(), new TestComponentB(), new TestComponentC()); InitializeSystem = new InitializeSystemSpy(); DeinitializeSystem = new DeinitializeSystemSpy(); ExecuteSystem = new ExecuteSystemSpy(); CleanupSystem = new CleanupSystemSpy(); var subSystem = new ReactiveSubSystemSpy(Matcher.AllOf(typeof(TestComponentA)), GroupEventType.OnEntityAdded); ReactiveSystem = new ReactiveSystem <ITestPool>(Pool, subSystem); PoolInterfaces = new IPool[] { Pool }; }