Example #1
0
        public void RunLclFldScenario()
        {
            var test   = new BooleanComparisonOpTest__CompareGreaterThanOrEqualUnorderedScalarSingle();
            var result = Sse.CompareGreaterThanOrEqualUnorderedScalar(test._fld1, test._fld2);

            ValidateResult(test._fld1, test._fld2, result);
        }
        private static void CompareGreaterThanOrEqualUnorderedScalarSingle()
        {
            var test = new BooleanComparisonOpTest__CompareGreaterThanOrEqualUnorderedScalarSingle();

            if (test.IsSupported)
            {
                // Validates basic functionality works
                test.RunBasicScenario();

                // Validates calling via reflection works
                test.RunReflectionScenario();

                // Validates passing a static member works
                test.RunClsVarScenario();

                // Validates passing a local works
                test.RunLclVarScenario();

                // Validates passing the field of a local works
                test.RunLclFldScenario();

                // Validates passing an instance member works
                test.RunFldScenario();
            }
            else
            {
                // Validates we throw on unsupported hardware
                test.RunUnsupportedScenario();
            }

            if (!test.Succeeded)
            {
                throw new Exception("One or more scenarios did not complete as expected.");
            }
        }