Imported Upstream version 3.12.0

Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
This commit is contained in:
Jo Shields
2015-01-13 10:44:36 +00:00
parent 8b9b85e7f5
commit 181b81b4a4
659 changed files with 12743 additions and 16300 deletions

View File

@ -159,6 +159,30 @@ namespace MonoTests.System.Diagnostics
ValidateExceptions ("#TAT:BadChildren", "<assert>{0}</assert>", badChildren);
}
[Test]
[Category ("NotDotNet")]
public void PerformanceCountersTag ()
{
string[] goodAttributes = {
"",
"filemappingsize=\"1048576\"",
"filemappingsize=\"0\""
};
ValidateSuccess ("#PCT:Good", "<performanceCounters {0}/>", goodAttributes);
string[] badAttributes = {
"FileMappingSize=\"1048576\"",
"filemappingsize=\"\"",
"filemappingsize=\"non-int-value\""
};
ValidateExceptions ("#PCT:BadAttrs", "<performanceCounters {0}/>", badAttributes);
string[] badChildren = {
"<any element=\"here\"/>"
};
ValidateExceptions ("#PCT:BadChildren", "<performanceCounters>{0}</performanceCounters>", badChildren);
}
[Test]
[Category ("NotDotNet")]
public void TraceTag_Attributes ()