Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }