public void Disposed_ContainerIsDisposed() { var logger = new LoggerMockup(); var moduleResources = new SingularityModules[0]; using (var scope = new GameScope(logger, new SceneScopeFactoryMockup(), new SceneEventsProviderMockup(), moduleResources)) { Assert.False(scope.Container.IsDisposed); scope.Dispose(); Assert.True(scope.Container.IsDisposed); } }
#pragma warning disable 1591 protected override void OnGameEnded() #pragma warning restore 1591 { _gameScope?.Dispose(); }