示例#1
0
        public void GetNewOrnamentsGroup1800_IdentifierIsNullOrWhiteSpace_ShouldThrow(string identifier)
        {
            // Arrange/Act
            var ex = Assert.Throws <ArgumentNullException>(() => NewOrnamentsGroup1800.GetNewOrnamentsGroup1800(identifier, null, null, null));

            // Assert
            Assert.NotNull(ex);
            Assert.Contains("No identifier was given.", ex.Message);
        }
示例#2
0
        public void GetNewOrnamentsGroup1800_IdentifierBelongsToAmusementPark_ShouldReturnCorrectGroup(string identifier)
        {
            // Arrange/Act
            var result = NewOrnamentsGroup1800.GetNewOrnamentsGroup1800(identifier, null, null, null);

            // Assert
            Assert.Equal("Ornaments", result.Faction);
            Assert.Equal("19 Amusement Park", result.Group);
            Assert.Null(result.Template);
        }
示例#3
0
        public void GetNewOrnamentsGroup1800_IdentifierBelongsToIndustrialFences_ShouldReturnCorrectGroup(string identifier)
        {
            // Arrange/Act
            var result = NewOrnamentsGroup1800.GetNewOrnamentsGroup1800(identifier, null, null, null);

            // Assert
            Assert.Equal("Ornaments", result.Faction);
            Assert.Equal("18 IndustrialFences", result.Group);
            Assert.Equal("OrnamentalBuilding_Industrial", result.Template);
        }
示例#4
0
        public void GetNewOrnamentsGroup1800_IdentifierBelongsToParkDecorations_ShouldReturnCorrectGroup(string identifier)
        {
            // Arrange/Act
            var result = NewOrnamentsGroup1800.GetNewOrnamentsGroup1800(identifier, null, null, null);

            // Assert
            Assert.Equal("Ornaments", result.Faction);
            Assert.Equal("06 Park Decorations", result.Group);
            Assert.Equal("OrnamentalBuilding_Park", result.Template);
        }