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

TestMathExp() private method

private TestMathExp ( ) : void
return void
        public virtual void TestMathExp()
        {
            var zero = db.Customers.Where(c => c.CustomerID == "ALFKI").Sum(c => Math.Exp((c.CustomerID == "ALFKI") ? 0.0 : 0.0));
            var one = db.Customers.Where(c => c.CustomerID == "ALFKI").Sum(c => Math.Exp((c.CustomerID == "ALFKI") ? 1.0 : 1.0));
            var two = db.Customers.Where(c => c.CustomerID == "ALFKI").Sum(c => Math.Exp((c.CustomerID == "ALFKI") ? 2.0 : 2.0));
            AssertValue(Math.Exp(0.0), zero, 0.0001);
            AssertValue(Math.Exp(1.0), one, 0.0001);
            AssertValue(Math.Exp(2.0), two, 0.0001);
        }
NorthwindExecutionTest