diff options
Diffstat (limited to 'linker/Tests/TestCases/TestSuites.cs')
-rw-r--r-- | linker/Tests/TestCases/TestSuites.cs | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/linker/Tests/TestCases/TestSuites.cs b/linker/Tests/TestCases/TestSuites.cs new file mode 100644 index 000000000..ca5a0eb7e --- /dev/null +++ b/linker/Tests/TestCases/TestSuites.cs @@ -0,0 +1,76 @@ +using Mono.Linker.Tests.TestCasesRunner; +using NUnit.Framework; + +namespace Mono.Linker.Tests.TestCases +{ + [TestFixture] + public class All + { + [TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.BasicTests))] + public void BasicTests (TestCase testCase) + { + Run (testCase); + } + + [TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.VirtualMethodsTests))] + public void VirtualMethodTests (TestCase testCase) + { + Run (testCase); + } + + [TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.XmlTests))] + public void XmlTests (TestCase testCase) + { + Run (testCase); + } + + [TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.AttributeTests))] + public void AttributesTests (TestCase testCase) + { + Run (testCase); + } + + [TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.GenericsTests))] + public void GenericsTests (TestCase testCase) + { + Run (testCase); + } + + [TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.StaticsTests))] + public void StaticsTests (TestCase testCase) + { + Run (testCase); + } + + [TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.CoreLinkTests))] + public void CoreLinkTests (TestCase testCase) + { + Run (testCase); + } + + [TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.InteropTests))] + public void InteropTests (TestCase testCase) + { + Run (testCase); + } + + [TestCaseSource(typeof(TestDatabase), nameof(TestDatabase.ReferencesTests))] + public void ReferencesTests(TestCase testCase) + { + Run(testCase); + } + + [TestCaseSource (typeof (TestDatabase), nameof (TestDatabase.OtherTests))] + public void OtherTests (TestCase testCase) + { + Run (testCase); + } + + protected virtual void Run (TestCase testCase) + { + var runner = new TestRunner (new ObjectFactory ()); + var linkedResult = runner.Run (testCase); + new ResultChecker ().Check (linkedResult); + } + } +} |