Example #1
0
        public void RemovingPropertyErrorDecrementsCount()
        {
            //	Arrange
            var collection = new PropertyMessageCollection()
            {
                propertyError
            };

            //	Act
            collection.Remove(propertyError);

            //	Assert
            Assert.Equal(0, collection.Count);
            Assert.Equal(0, collection.ErrorCount);
        }
Example #2
0
        public void RemovingWarningDecrementsCount()
        {
            //	Arrange
            var collection = new PropertyMessageCollection()
            {
                unknownProperty
            };

            //	Act
            collection.Remove(unknownProperty);

            //	Assert
            Assert.Equal(0, collection.Count);
            Assert.Equal(0, collection.WarningCount);
        }
Example #3
0
        public void RemovingRequiredFieldDecrementsCount()
        {
            //	Arrange
            var collection = new PropertyMessageCollection()
            {
                requiredProperty
            };

            //	Act
            collection.Remove(requiredProperty);

            //	Assert
            Assert.Equal(0, collection.Count);
            Assert.Equal(0, collection.MissingFieldCount);
        }