using System;
using System.Runtime.CompilerServices;
+using System.Threading;
using NUnit.Framework;
}
}
+ [Test]
public void TestOffsetToStringData ()
{
Assert.AreEqual (
RuntimeHelpers.OffsetToStringData, "OffsetToStringData is not constant");
}
+ [Test]
public void TestGetObjectValue ()
{
FooStruct s1;
Assert.AreEqual (s2.j, "FOO");
}
+ [Test]
public void TestRunClassConstructor ()
{
RuntimeHelpers.RunClassConstructor (typeof(FooClass).TypeHandle);
RuntimeHelpers.InitializeArray (new Fielder ().array, rfh);
}
+ [Test]
public void TestGetHashCode ()
{
Assert.AreEqual (0, RuntimeHelpers.GetHashCode (null));
Assert.IsTrue (5 != RuntimeHelpers.GetHashCode (new FooClass ()));
}
+ [Test]
public void TestEquals ()
{
Assert.IsTrue (RuntimeHelpers.Equals (null, null));