public void GetNewFactionAndGroup1800_IdentifierBelongsToTechnicians_ShouldReturnCorrectFaction(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Contains("(11) Technicians", result[0]);
        }
        public void GetNewFactionAndGroup1800_IdentifierBelongsToOrnamentals_ShouldReturnCorrectFaction(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Contains("All Worlds", result[0]);
        }
Beispiel #3
0
        public void GetNewFactionAndGroup1800_IdentifierBelongsToExplorers_ShouldReturnCorrectFaction(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Equal("(10) Explorers", result.Faction);
        }
Beispiel #4
0
        public void GetNewFactionAndGroup1800_IdentifierBelongsToOrnamentals_ShouldReturnCorrectFaction(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Null(result.Faction);
        }
Beispiel #5
0
        public void GetNewFactionAndGroup1800_IdentifierBelongsToSpecialBuildings_ShouldReturnCorrectFaction(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Equal("All Worlds", result.Faction);
        }
        public void GetNewFactionAndGroup1800_IdentifierBelongsToExplorersFarmBuildings_ShouldReturnCorrectGroup(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Contains("Farm Buildings", result[1]);
            Assert.Contains("(10) Explorers", result[0]);
        }
        public void GetNewFactionAndGroup1800_IdentifierBelongsToSpecialBuildings_ShouldReturnCorrectGroup(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Contains("Special Buildings", result[1]);
            Assert.Contains("All Worlds", result[0]);
        }
        public void GetNewFactionAndGroup1800_IdentifierBelongsToObrerosProductionBuildings_ShouldReturnCorrectGroup(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Contains("Production Buildings", result[1]);
            Assert.Contains("(08) Obreros", result[0]);
        }
        public void GetNewFactionAndGroup1800_IdentifierIsNullOrWhiteSpace_ShouldThrow(string identifier)
        {
            // Arrange/Act
            var ex = Assert.Throws <ArgumentNullException>(() => NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null));

            // Assert
            Assert.NotNull(ex);
            Assert.Contains("No identifier was given.", ex.Message);
        }
Beispiel #10
0
        public void GetNewFactionAndGroup1800_IdentifierBelongsToTechniciansFarmBuildings_ShouldReturnCorrectGroup(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Equal("Farm Buildings", result.Group);
            Assert.Equal("(11) Technicians", result.Faction);
            Assert.Empty(result.Template);
        }
Beispiel #11
0
        public void GetNewFactionAndGroup1800_IdentifierBelongsToExplorersProductionBuildings_ShouldReturnCorrectGroup(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Equal("Production Buildings", result.Group);
            Assert.Equal("(10) Explorers", result.Faction);
            Assert.Equal("FactoryBuilding7", result.Template);
        }
Beispiel #12
0
        public void GetNewFactionAndGroup1800_IdentifierBelongsToJornalerosProductionBuildings_ShouldReturnCorrectGroup(string identifier)
        {
            // Arrange/Act
            var result = NewFactionAndGroup1800.GetNewFactionAndGroup1800(identifier, null, null);

            // Assert
            Assert.Equal("Production Buildings", result.Group);
            Assert.Equal("(07) Jornaleros", result.Faction);
            Assert.Empty(result.Template);
        }