Esempio n. 1
0
    // This test uses the same set of types as the type system unittests use, and attempts to validate that the R2R usage of said types works well.
    // This is done by touching the various types, and then relying on the verification logic in R2R images to detect failures.
    static int Main()
    {
        ContainsGCPointersFieldsTest.Test();
//        ExplicitTest.Test(); // Explicit layout is known to not quite match the runtime, and if enabled this set of tests will fail.
        SequentialTest.Test();
        AutoTest.Test();
        EnumAlignmentTest.Test();
        AutoTestWithVector.Test();
        return(100);
    }
Esempio n. 2
0
        public void MeasureSequentialCall_None_Equal()
        {
            SequentialTest.SequentialCall();
            var actual   = tracer.GetTraceResult().Threads[0].Methods;
            var expected = new MethodTraceResult("SimpleTest", "SimpleCall");

            foreach (MethodTraceResult m in actual)
            {
                CheckEqual(expected, m);
            }
        }