You've already forked linux-packaging-mono
Imported Upstream version 3.12.0
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
This commit is contained in:
@ -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 ()
|
||||
|
Reference in New Issue
Block a user