예제 #1
0
            public void SimpleInitialization()
            {
                //Arrange
                var xmlSchemaSet = TestGenerator.XmlSchemaSet();

                //Act
                var validationRunner = new XmlValidationRunner(xmlSchemaSet);

                //Assert
                Assert.Equal(xmlSchemaSet, validationRunner.XmlSchemaSet);
            }
예제 #2
0
            public void AddsValidationMessage()
            {
                //Arrange
                var validationRunner  = new XmlValidationRunner(TestGenerator.XmlSchemaSet());
                var invalidTestCouple = new TestGenerator.InvalidContentTestCouple();

                //Act
                validationRunner.Validate(invalidTestCouple.Input());

                //Assert
                Assert.Equal(1, validationRunner.ValidationMessages.Count);
            }