Exemplo n.º 1
0
        public void Constructor_ShouldAddNewType()
        {
            var ground        = new TerrainType(1, "Ground");
            var walking       = new MovementType(1, "Walking");
            var movementTypes = new MovementTypes(new[] { ground },
                                                  new Dictionary <MovementType, Dictionary <TerrainType, int> >
            {
                [walking] = new Dictionary <TerrainType, int>
                {
                    [ground] = 1
                }
            });

            Assert.That(movementTypes.ContainsTerrainType(ground), Is.True);
            Assert.That(movementTypes.ContainsMovementType(walking), Is.True);
        }