public void AddingWarningIncrementsCount() { // Arrange var collection = new PropertyMessageCollection(); // Act collection.Add(unknownProperty); // Assert Assert.Equal(1, collection.Count); Assert.Equal(1, collection.WarningCount); }
public void AddingRequiredFieldIncrementsCount() { // Arrange var collection = new PropertyMessageCollection(); // Act collection.Add(requiredProperty); // Assert Assert.Equal(1, collection.Count); Assert.Equal(1, collection.MissingFieldCount); }
public void AddingPropertyErrorIncrementsCount() { // Arrange var collection = new PropertyMessageCollection(); // Act collection.Add(propertyError); // Assert Assert.Equal(1, collection.Count); Assert.Equal(1, collection.ErrorCount); }