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

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2019-04-12 16:01:07 +0300
committerGitHub <noreply@github.com>2019-04-12 16:01:07 +0300
commite053b689a459d7e6462ef8c358c7ba36e51df279 (patch)
tree0d616a43ae18d123d41ef35dc2de55aad3f5a758 /test/Mono.Linker.Tests
parente9ed848a9b2cf91e43c7fbc7ccc81db0e9bcf2de (diff)
Simplified version of PR #506 (#528)
Diffstat (limited to 'test/Mono.Linker.Tests')
-rw-r--r--test/Mono.Linker.Tests/TestCases/TestDatabase.cs5
-rw-r--r--test/Mono.Linker.Tests/TestCases/TestSuites.cs13
2 files changed, 18 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests/TestCases/TestDatabase.cs b/test/Mono.Linker.Tests/TestCases/TestDatabase.cs
index 17e380783..3f5ab6f5a 100644
--- a/test/Mono.Linker.Tests/TestCases/TestDatabase.cs
+++ b/test/Mono.Linker.Tests/TestCases/TestDatabase.cs
@@ -131,6 +131,11 @@ namespace Mono.Linker.Tests.TestCases
return NUnitCasesBySuiteName ("UnreachableBody");
}
+ public static IEnumerable<TestCaseData> CodegenAnnotationTests ()
+ {
+ return NUnitCasesBySuiteName ("CodegenAnnotation");
+ }
+
public static TestCaseCollector CreateCollector ()
{
string rootSourceDirectory;
diff --git a/test/Mono.Linker.Tests/TestCases/TestSuites.cs b/test/Mono.Linker.Tests/TestCases/TestSuites.cs
index 210442e28..90d2f2e69 100644
--- a/test/Mono.Linker.Tests/TestCases/TestSuites.cs
+++ b/test/Mono.Linker.Tests/TestCases/TestSuites.cs
@@ -1,5 +1,6 @@
using Mono.Linker.Tests.TestCasesRunner;
using NUnit.Framework;
+using System;
namespace Mono.Linker.Tests.TestCases
{
@@ -144,6 +145,18 @@ namespace Mono.Linker.Tests.TestCases
Run (testCase);
}
+ [TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.CodegenAnnotationTests))]
+ public void CodegenAnnotationTests (TestCase testCase)
+ {
+ if (Environment.OSVersion.Platform == PlatformID.Win32NT)
+ Assert.Ignore("These tests are not valid when linking against .NET Framework");
+
+#if NETCOREAPP
+ Assert.Ignore("These tests are not valid when linking against .NET Core");
+#endif
+ Run (testCase);
+ }
+
[TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.UnreachableBodyTests))]
public void UnreachableBodyTests (TestCase testCase)
{