public virtual void GetPropertyTest() { //Properties are not supported for AbstractRenderer, and it's expected that the result is null for all the properties. //The BORDER property is chosen without any specific intention. It could be replaced with any other property. AreaBreakRenderer areaBreakRenderer = new AreaBreakRenderer(new AreaBreak()); NUnit.Framework.Assert.IsNull(areaBreakRenderer.GetProperty <Property>(Property.BORDER)); }
public virtual void GetPropertyWithDefaultValueTestUnsupported() { NUnit.Framework.Assert.That(() => { //The BORDER_RADIUS property is chosen without any specific intention. It could be replaced with any other property. AreaBreakRenderer areaBreakRenderer = new AreaBreakRenderer(new AreaBreak()); areaBreakRenderer.GetProperty(Property.BORDER_RADIUS, 3); } , NUnit.Framework.Throws.InstanceOf <NotSupportedException>()) ; }