Example #1
0
        private void Bug412116(OpenXmlValidator validator)
        {
            DocumentFormat.OpenXml.Drawing.Charts.Trendline tl = new DocumentFormat.OpenXml.Drawing.Charts.Trendline();
            tl.AppendChild(new DocumentFormat.OpenXml.Drawing.Diagrams.ShapeProperties());
            var errors = validator.Validate(tl);

            Assert.Single(errors);
            Assert.Same(tl, errors.First().Node);
        }
Example #2
0
        public void Bug412116(FileFormatVersions version)
        {
            var validator = new OpenXmlValidator(version);

            DocumentFormat.OpenXml.Drawing.Charts.Trendline tl = new DocumentFormat.OpenXml.Drawing.Charts.Trendline();
            tl.AppendChild(new DocumentFormat.OpenXml.Drawing.Diagrams.ShapeProperties());
            var errors = validator.Validate(tl);

            Assert.Single(errors);
            Assert.Same(tl, errors.First().Node);
        }
 private void Bug412116(OpenXmlValidator validator)
 {
     DocumentFormat.OpenXml.Drawing.Charts.Trendline tl = new DocumentFormat.OpenXml.Drawing.Charts.Trendline();
     tl.AppendChild(new DocumentFormat.OpenXml.Drawing.Diagrams.ShapeProperties());
     var errors = validator.Validate(tl);
     Assert.Equal(1, errors.Count());
     Assert.Same(tl, errors.First().Node);
 }