public void RemoveErrorByKey2_1()
        {
            // Arrange
            var propertyName1   = "Item1";
            var errorMessage1_1 = "ErrorMessage1_1.";
            var errorMessage1_2 = "ErrorMessage1_2.";
            var propertyName2   = "Item2";
            var errorMessage2_1 = "ErrorMessage2_1.";
            var errorMessage2_2 = "ErrorMessage2_2.";
            var inner           = new Dictionary <string, List <string> >
            {
                { propertyName1, new List <string> {
                      errorMessage1_1, errorMessage1_2
                  } },
                { propertyName2, new List <string> {
                      errorMessage2_1, errorMessage2_2
                  } },
            };
            var dictionary = new ValidationDictionary(inner);

            // Act
            dictionary.RemoveErrorByKey(propertyName1);

            // Assert
            Assert.False(inner.ContainsKey(propertyName1));
            Assert.True(inner.ContainsKey(propertyName2));
        }
        public void RemoveErrorByKey1_0()
        {
            // Arrange
            var propertyName1 = "Item1";
            var errorMessage1 = "ErrorMessage2.";
            var errorMessage2 = "ErrorMessage2.";
            var inner         = new Dictionary <string, List <string> >
            {
                { propertyName1, new List <string> {
                      errorMessage1, errorMessage2
                  } }
            };
            var dictionary = new ValidationDictionary(inner);

            // Act
            dictionary.RemoveErrorByKey(propertyName1);

            // Assert
            Assert.Empty(inner);
        }