Example #1
0
        public void DoubleParametrization([IncludeDataSources(TestProvName.AllSQLite)] string context)
        {
            var data = ClassRealTypes.Seed();

            using (var db = GetDataContext(context))
                using (var table = db.CreateLocalTable(data))
                {
                    var actual = (
                        from t1 in table
                        where t1.DoubleValue == double.MaxValue && t1.FloatValue == float.MaxValue
                        select t1
                        ).Concat(
                        from t1 in table
                        where t1.DoubleValue == double.MinValue && t1.FloatValue == float.MinValue
                        select t1
                        ).ToArray();

                    var expected = (
                        from t1 in data
                        where t1.DoubleValue == double.MaxValue && t1.FloatValue == float.MaxValue
                        select t1
                        ).Concat(
                        from t1 in data
                        where t1.DoubleValue == double.MinValue && t1.FloatValue == float.MinValue
                        select t1
                        );


                    AreEqualWithComparer(expected, actual);
                }
        }