Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Test/Mono.Cecil.Tests/BaseTestFixture.cs')
-rw-r--r--Test/Mono.Cecil.Tests/BaseTestFixture.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/Mono.Cecil.Tests/BaseTestFixture.cs b/Test/Mono.Cecil.Tests/BaseTestFixture.cs
index f349866..cdaf463 100644
--- a/Test/Mono.Cecil.Tests/BaseTestFixture.cs
+++ b/Test/Mono.Cecil.Tests/BaseTestFixture.cs
@@ -29,6 +29,18 @@ namespace Mono.Cecil.Tests {
Assert.Ignore ();
}
+ protected static void IgnoreOnCoreClr ()
+ {
+ if (Platform.OnCoreClr)
+ Assert.Ignore ();
+ }
+
+ protected static void OnlyOnWindows ()
+ {
+ if (!Platform.OnWindows)
+ Assert.Ignore ();
+ }
+
public static string GetResourcePath (string name, string sourceFilePath)
{
return Path.Combine (FindResourcesDirectory (sourceFilePath), name);