コード例 #1
0
        public void AddingMultiplePropertyErrorsIncrementsCount()
        {
            //	Arrange
            var collection = new PropertyMessageCollection();

            //	Act
            collection.AddRange(propertyErrors);

            //	Assert
            Assert.Equal(8, collection.Count);
            Assert.Equal(8, collection.ErrorCount);
        }
コード例 #2
0
        public void AddingMultipleWarningsIncrementsCount()
        {
            //	Arrange
            var collection = new PropertyMessageCollection();

            //	Act
            collection.AddRange(unknownProperties);

            //	Assert
            Assert.Equal(10, collection.Count);
            Assert.Equal(10, collection.WarningCount);
        }
コード例 #3
0
        public void AddingMultipleRequiredFieldsIncrementsCount()
        {
            //	Arrange
            var collection = new PropertyMessageCollection();

            //	Act
            collection.AddRange(requiredProperties);

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