public virtual void SetAndGetWidthUnitValueTest() { float expectedWidth = 50; Style style = new Style(); NUnit.Framework.Assert.IsNull(style.GetWidth()); style.SetWidth(UnitValue.CreatePointValue(expectedWidth)); NUnit.Framework.Assert.AreEqual(UnitValue.CreatePointValue(expectedWidth), style.GetWidth()); }