public void OnOffValueApplicationTest() { Bold b = new Bold(); b.Val = true; Assert.True(b.Val); b.Val.InnerText = "off"; Assert.False(b.Val); DocumentFormat.OpenXml.Vml.Office.ShapeDefaults sd = new DocumentFormat.OpenXml.Vml.Office.ShapeDefaults(); sd.BeFilled = true; Assert.True(sd.BeFilled); sd.BeFilled.InnerText = "f"; Assert.False(sd.BeFilled); DocumentFormat.OpenXml.Vml.ShapeHandle h = new DocumentFormat.OpenXml.Vml.ShapeHandle(); h.Switch = true; Assert.True(h.Switch); h.Switch.InnerText = string.Empty; Assert.False(h.Switch); DocumentFormat.OpenXml.Vml.Office.Proxy p = new DocumentFormat.OpenXml.Vml.Office.Proxy(); p.Start = true; Assert.True(p.Start); p.Start.InnerText = "false"; Assert.False(p.Start); //DocumentFormat.OpenXml.Vml.Spreadsheet.Locked locked = new DocumentFormat.OpenXml.Vml.Spreadsheet.Locked("t"); //Assert.Equal(typeof(EnumValue<DocumentFormat.OpenXml.Vml.Spreadsheet.BooleanEntryWithBlankValues>), locked.InnerTextToValue(locked.InnerText)); }