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

TestMathSqrt() private method

private TestMathSqrt ( ) : void
return void
        public virtual void TestMathSqrt()
        {
            var one = db.Customers.Where(c => c.CustomerID == "ALFKI").Sum(c => Math.Sqrt((c.CustomerID == "ALFKI") ? 1.0 : 1.0));
            var four = db.Customers.Where(c => c.CustomerID == "ALFKI").Sum(c => Math.Sqrt((c.CustomerID == "ALFKI") ? 4.0 : 4.0));
            var nine = db.Customers.Where(c => c.CustomerID == "ALFKI").Sum(c => Math.Sqrt((c.CustomerID == "ALFKI") ? 9.0 : 9.0));
            AssertValue(1.0, one);
            AssertValue(2.0, four);
            AssertValue(3.0, nine);
        }
NorthwindExecutionTest