public void ReactiveSystemClearsOnAdded() { SetupReactiveSystemAdded(); CreateEntityAb(); _system.Clear(); _system.Execute(); AssertEntities(_system, null); }
public void ClearsReactiveSystemAfterExecute() { _system = new ReactiveSystemSpy(_context.CreateCollector(_matcherAb)); _system.executeAction = entities => { entities[0].ReplaceComponentA(Component.A); }; var e = CreateEntityAb(); _system.Execute(); _system.Clear(); _system.Execute(); AssertEntities(_system, e); }