diff options
Diffstat (limited to 'Test/Mono.Cecil.Tests/BaseTestFixture.cs')
-rw-r--r-- | Test/Mono.Cecil.Tests/BaseTestFixture.cs | 12 |
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); |