[corlib] Enable more RuntimeHelpers tests
authorMarek Safar <marek.safar@gmail.com>
Tue, 4 Oct 2016 16:53:23 +0000 (18:53 +0200)
committerMarek Safar <marek.safar@gmail.com>
Tue, 4 Oct 2016 16:53:51 +0000 (18:53 +0200)
mcs/class/corlib/Test/System.Runtime.CompilerServices/RuntimeHelpersTest.cs

index 9234e9fc300cdbbb00d6ce0d774e4e8abcf08ab5..fcace5bb0b94a5ddc0a98ea97ed8b96af3618cce 100644 (file)
@@ -7,6 +7,7 @@
 
 using System;
 using System.Runtime.CompilerServices;
+using System.Threading;
 
 using NUnit.Framework;
 
@@ -45,6 +46,7 @@ namespace MonoTests.System.Runtime.CompilerServices {
                        }
                }
 
+               [Test]
                public void TestOffsetToStringData () 
                {
                        Assert.AreEqual (
@@ -52,6 +54,7 @@ namespace MonoTests.System.Runtime.CompilerServices {
                                                  RuntimeHelpers.OffsetToStringData, "OffsetToStringData is not constant");
                }
 
+               [Test]
                public void TestGetObjectValue ()
                {
                        FooStruct s1;
@@ -75,6 +78,7 @@ namespace MonoTests.System.Runtime.CompilerServices {
                        Assert.AreEqual (s2.j, "FOO");
                }
 
+               [Test]
                public void TestRunClassConstructor ()
                {
                        RuntimeHelpers.RunClassConstructor (typeof(FooClass).TypeHandle);
@@ -169,6 +173,7 @@ namespace MonoTests.System.Runtime.CompilerServices {
                        RuntimeHelpers.InitializeArray (new Fielder ().array, rfh);
                }
 
+               [Test]
                public void TestGetHashCode ()
                {
                        Assert.AreEqual (0, RuntimeHelpers.GetHashCode (null));
@@ -177,6 +182,7 @@ namespace MonoTests.System.Runtime.CompilerServices {
                        Assert.IsTrue (5 != RuntimeHelpers.GetHashCode (new FooClass ()));
                }                       
 
+               [Test]
                public void TestEquals ()
                {
                        Assert.IsTrue (RuntimeHelpers.Equals (null, null));