public void TestDerivedSymbol()
{
int count = 0;
foreach (ShapeType s in ShapeType.Pool)
{
count++;
Assert.That(s == ShapeType.Circle || s == ShapeType.Rect ||
s == ShapeType.Polygon || s == ShapeType.Line);
Assert.That(s.Id > 0);
Assert.That(!s.IsGlobal);
Assert.AreEqual(s, ShapeType.Pool.GetById(s.Id));
Assert.AreEqual(s, ShapeType.Pool.GetIfExists(s.Name));
}
Assert.AreEqual(4, count);
}