public void TestIntSupport()
{
var schema = TestSchema.GetInstance();
// Ask for the custom pattern
var testPattern = (ITestPattern) _customElement.GetCurrentPattern(schema.PatternId);
Assert.IsNotNull(testPattern);
// Call through a pattern getter
var testPropertyValue = testPattern.CurrentIntValue;
Assert.AreEqual(42, testPropertyValue);
// Call for the custom property directly
var testPropertyValue2 = (int) _customElement.GetCurrentPropertyValue(schema.IntValueProperty.PropertyId);
Assert.AreEqual(42, testPropertyValue2);
// Call a pattern passer
int testPropertyValue3;
testPattern.PassIntParam(82, out testPropertyValue3);
Assert.AreEqual(82, testPropertyValue3);
}