示例#1
0
        public void TestGenCompile()
        {
            var skip = new List <int>();

            CompilerHelper.AssertUiEnabled(false);

            foreach (var index in Enumerable.Range(1, 589).Where(n => !skip.Contains(n)))
            {
                CompilerHelper.Compile(string.Format("gtest-{0:000}", index));
            }

            CompilerHelper.AssertUiEnabled(true);
        }
示例#2
0
        public void TestCompile()
        {
            // TODO: WARNING! order of obj files in g++ cmd line is important, CoreLib.obj should be last one

            // 10 - Double conversion (in CoreLib.dll some conversions are missing)
            // 100 - using DllImport
            // 324 - bug NEED TO BE FIXED.
            // 353 - does not have Main method
            // 386 - Double conversion (in CoreLib.dll some conversions are missing)
            // 387 - Decimal conversion (in CoreLib.dll some conversions are missing)
            // 444 - codepage 65001 is used (can't be compiled)
            // 535 - IntPtr conversion (in CoreLib.dll some conversions are missing)
            // 550 - codepage 65001 is used (can't be compiled)
            // 551 - multiple definition of Int32 (but all issues are fixed)
            // 616 - test to compile Object (but it should be compiled without any Assembly reference)
            // 631 - missing System_Decimal__op_UnaryNegation (the same issue as 596)
            // 817 - redefinition of Int32
            // 864 - Decimal conversion (in CoreLib.dll some conversions are missing)
            var skip =
                new List <int>(
                    new[]
            {
                10,
                100,
                353,
                386,
                387,
                444,
                482,
                535,
                550,
                551,
                616,
                631,
                817,
                864
            });

            CompilerHelper.AssertUiEnabled(false);

            foreach (var index in Enumerable.Range(1, 907).Where(n => !skip.Contains(n)))
            {
                CompilerHelper.Compile(string.Format("test-{0}", index));
            }

            CompilerHelper.AssertUiEnabled(true);
        }