Ejemplo n.º 1
0
        public void RunLclFldScenario()
        {
            var test   = new BooleanComparisonOpTest__CompareEqualOrderedScalarSingle();
            var result = Sse.CompareEqualOrderedScalar(test._fld1, test._fld2);

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

            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.");
            }
        }