NLite.Data.Test.DateTimeTest.TestDateTimeConstructYMD C# (CSharp) Method

TestDateTimeConstructYMD() private method

private TestDateTimeConstructYMD ( ) : void
return void
        public virtual void TestDateTimeConstructYMD()
        {
            var dt = db.Customers.Where(c => c.CustomerID == "ALFKI").Max(c => new DateTime((c.CustomerID == "ALFKI") ? 1997 : 1997, 7, 4));
            AssertValue(1997, dt.Year);
            AssertValue(7, dt.Month);
            AssertValue(4, dt.Day);
            AssertValue(0, dt.Hour);
            AssertValue(0, dt.Minute);
            AssertValue(0, dt.Second);
        }
DateTimeTest