NLite.Data.Test.NorthwindExecutionTest.TestDecimalFloor C# (CSharp) Method

TestDecimalFloor() private method

private TestDecimalFloor ( ) : void
return void
        public virtual void TestDecimalFloor()
        {
            var four = db.Customers.Where(c => c.CustomerID == "ALFKI").Sum(c => decimal.Floor((c.CustomerID == "ALFKI" ? 3.4m : 3.4m)));
            var six = db.Customers.Where(c => c.CustomerID == "ALFKI").Sum(c => decimal.Floor((c.CustomerID == "ALFKI" ? 3.6m : 3.6m)));
            var nfour = db.Customers.Where(c => c.CustomerID == "ALFKI").Sum(c => decimal.Floor((c.CustomerID == "ALFKI" ? -3.4m : -3.4m)));
            AssertValue(decimal.Floor(3.4m), four);
            AssertValue(decimal.Floor(3.6m), six);
            AssertValue(decimal.Floor(-3.4m), nfour);
        }
NorthwindExecutionTest