public void should_start_system_when_added_to_handler() { var mockSystem = Substitute.For <IManualSystem>(); var systemHandler = new ManualSystemHandler(); systemHandler.SetupSystem(mockSystem); mockSystem.Received(1).StartSystem(); }
public void should_start_system_when_added_to_handler() { var mockObservableGroup = Substitute.For <IObservableGroup>(); var mockCollectionManager = Substitute.For <IEntityCollectionManager>(); mockCollectionManager.CreateObservableGroup(Arg.Any <IGroup>()).Returns(mockObservableGroup); var mockSystem = Substitute.For <IManualSystem>(); var systemHandler = new ManualSystemHandler(mockCollectionManager); systemHandler.SetupSystem(mockSystem); mockSystem.Received(1).StartSystem(Arg.Is(mockObservableGroup)); }