Deveel.Data.SystemDateFunctionTests.Extract_Month C# (CSharp) Méthode

Extract_Month() private méthode

private Extract_Month ( ) : void
Résultat void
        public void Extract_Month()
        {
            var date = new SqlDateTime(1980, 02, 05, 18, 20, 11, 32);
            var value = Select("EXTRACT", SqlExpression.Constant(date), SqlExpression.Constant("month"));

            Assert.IsNotNull(value);
            Assert.IsFalse(value.IsNull);
            Assert.IsInstanceOf<NumericType>(value.Type);
            Assert.IsInstanceOf<SqlNumber>(value.Value);

            Assert.AreEqual(new SqlNumber(02), value.Value);
        }