예제 #1
0
        public void AddingWarningIncrementsCount()
        {
            //	Arrange
            var collection = new PropertyMessageCollection();

            //	Act
            collection.Add(unknownProperty);

            //	Assert
            Assert.Equal(1, collection.Count);
            Assert.Equal(1, collection.WarningCount);
        }
예제 #2
0
        public void AddingRequiredFieldIncrementsCount()
        {
            //	Arrange
            var collection = new PropertyMessageCollection();

            //	Act
            collection.Add(requiredProperty);

            //	Assert
            Assert.Equal(1, collection.Count);
            Assert.Equal(1, collection.MissingFieldCount);
        }
예제 #3
0
        public void AddingPropertyErrorIncrementsCount()
        {
            //	Arrange
            var collection = new PropertyMessageCollection();

            //	Act
            collection.Add(propertyError);

            //	Assert
            Assert.Equal(1, collection.Count);
            Assert.Equal(1, collection.ErrorCount);
        }