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); }
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); }
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); }
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); }