public void StartUp_CreatesCorrectInstanseOfMap() { var serviceCollection = new ServiceCollection(); var startUp = new SimpleGameNA21.StartUp(); startUp.ConfigureServices(serviceCollection); var provider = serviceCollection.BuildServiceProvider(); var map = provider.GetRequiredService <IMap>(); Assert.IsInstanceOfType(map, typeof(ConsoleMap)); }
// [Ignore] public void ExceptionExample() { var startUp = new SimpleGameNA21.StartUp(); try { startUp.ThrowException(); } catch (ArgumentException) { throw; } }