Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        //  [Ignore]
        public void ExceptionExample()
        {
            var startUp = new SimpleGameNA21.StartUp();

            try
            {
                startUp.ThrowException();
            }
            catch (ArgumentException)
            {
                throw;
            }
        }