public void AddingMultiplePropertyErrorsIncrementsCount() { // Arrange var collection = new PropertyMessageCollection(); // Act collection.AddRange(propertyErrors); // Assert Assert.Equal(8, collection.Count); Assert.Equal(8, collection.ErrorCount); }
public void AddingMultipleWarningsIncrementsCount() { // Arrange var collection = new PropertyMessageCollection(); // Act collection.AddRange(unknownProperties); // Assert Assert.Equal(10, collection.Count); Assert.Equal(10, collection.WarningCount); }
public void AddingMultipleRequiredFieldsIncrementsCount() { // Arrange var collection = new PropertyMessageCollection(); // Act collection.AddRange(requiredProperties); // Assert Assert.Equal(5, collection.Count); Assert.Equal(5, collection.MissingFieldCount); }