public void UT4Bug683087()
        {
            DocumentFormat.OpenXml.Spreadsheet.ServerFormat sf = new DocumentFormat.OpenXml.Spreadsheet.ServerFormat();
            sf.Culture = "test";
            sf.Format = "test";
            var errors = new OpenXmlValidator(FileFormatVersions.Office2010).Validate(sf);

            Assert.Equal(errors.Count(), 1);
        }
 private void Bug514988(OpenXmlValidator validator)
 {
     var paragraph = new Paragraph();
     paragraph.RsidParagraphAddition = new HexBinaryValue();
     OpenXmlAttribute rsidR = paragraph.GetAttribute("rsidR", paragraph.NamespaceUri);
     OpenXmlAttribute newattr = new OpenXmlAttribute(rsidR.LocalName, rsidR.NamespaceUri, "0102");
     paragraph.SetAttribute(newattr);
     var errors = new OpenXmlValidator().Validate(paragraph);
     Assert.Equal(1, errors.Count());
     Assert.Equal(ValidationErrorType.Schema, errors.First().ErrorType);
     Assert.Equal("Sch_AttributeValueDataTypeDetailed", errors.First().Id);
     Assert.Equal("The attribute 'http://schemas.openxmlformats.org/wordprocessingml/2006/main:rsidR' has invalid value '0102'. The actual length according to datatype 'hexBinary' is not equal to the specified length. The expected length is 4.", errors.First().Description);
 }