Example #1
0
        private int IntProperty_0(int value)
        {
            FieldTests example = new FieldTests();

            example.Number = value;
            return(example.Number);
        }
Example #2
0
 public static void RunFieldTests()
 {
     FieldTests ft = new FieldTests();
     //            ft.PrivateField_Check();
     //            ft.IntProperty_Check();
     //            ft.EnumProperty_Check();
 }
Example #3
0
        //[assembly: Obfuscation(Exclude = true, Feature = "control flow protection: true")]
        public static void Main(string[] args)
        {
            args_in = args;

            Program p = new Program();

            LoopTests.RunLoopTests();
            BasicTests.RunBasicTests();
            ExceptionTests.RunExceptionTests();
            BranchTests.RunBranchTests();
            FieldTests.RunFieldTests();
            ExtensionsTests.RunExtenstionTests();
            LambdaTests.RunLambdaTests();
            DelegatesTests.RunDelegatesTests();
            FileOperations.RunReadFileTests();
            CodeBasicTests.RunBasicTests();
            CodeBranchTests.RunBranchTests();
            CodeLoopTests.RunLoopTests();

            PerformanceTests.RunLoopTests();

            BasicOperations.RunBasicTests();

            TraceLoopTests.RunLoopTests();

            ConditionalExpressionTests.RunBasicTests();

            TestReport();
            Console.ReadKey();
        }
Example #4
0
        private static DayOfWeek EnumProperty_0(DayOfWeek d)
        {
            FieldTests example = new FieldTests();

            example.Day = DayOfWeek.Monday;
            try
            {
                example.Day = d;
                Console.WriteLine(example.Day);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
            finally
            {
                example.Day = DayOfWeek.Wednesday;
            }

            return(example.Day);
        }
Example #5
0
        private static DayOfWeek EnumProperty_1(DayOfWeek d)
        {
            uint[] array = new uint[230];
            array[0] = 231u;
            object[] array2 = new object[55];
            int      num    = -1;

            num++;
            array2[1] = 1;
            array2[4] = 3;
            array2[2] = d;
            FieldTests fieldTests = null;

            array2[0] = fieldTests;
            Exception ex = null;

            array2[3] = ex;
            object obj = new FieldTests();

            array2[0] = obj;
            ((FieldTests)array2[0]).Day = (DayOfWeek)((int)array2[1]);
            try
            {
                ((FieldTests)array2[0]).Day = (DayOfWeek)array2[2];
                Console.WriteLine(((FieldTests)array2[0]).Day);
            }
            catch (Exception e)
            {
                array2[3] = e;
                Console.WriteLine((Exception)array2[3]);
            }
            finally
            {
                ((FieldTests)array2[0]).Day = (DayOfWeek)((int)array2[4]);
            }

            return(((FieldTests)array2[0]).Day);
        }