private void btnValidate_Click( object sender, EventArgs e )
{
var error = new StringBuilder( 1024*1024*6 );
TestAdapterDescription1 adapter = TestAdapterDescription;
if (!SchemaManager.ValidateXml( adapter.Serialize(), ATMLCommon.TestAdapterNameSpace, error ))
{
string name = GetName( adapter );
ATMLErrorForm.ShowValidationMessage(
string.Format( "The \"{0}\" Test Adapter has failed validation against the {1} ATML schema.", name,
ATMLCommon.TestAdapterNameSpace ),
error.ToString(), "Note: This error will not prevent you from continuing." );
}
else
{
MessageBox.Show( @"This Test Adapter generated valid ATML" );
}
}