Example #1
0
        public static void AssignComparerConventions(this CheckerConventions conventions)
        {
            // NB We have an extension to use a function for a type or we can do it explicitly if we want more context
            conventions.ComparerConvention <double>(AbsDouble);
            conventions.ComparerConvention <double?>(AbsDouble);

            conventions.ComparerConvention <float>(AbsFloat);
            conventions.ComparerConvention <float?>(AbsFloat);
            conventions.ComparerConvention <float>(x => (x == typeof(float)), AbsFloat);
        }