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); }
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); }