Deveel.Data.SequenceFunctionTests.NextValue C# (CSharp) Method

NextValue() private method

private NextValue ( ) : void
return void
        public void NextValue()
        {
            var result = Select("NEXTVAL", SqlExpression.Constant("APP.seq1"));

            Assert.IsNotNull(result);
            Assert.IsInstanceOf<NumericType>(result.Type);
            Assert.IsInstanceOf<SqlNumber>(result.Value);

            var value = (SqlNumber) result.Value;
            Assert.AreEqual(new SqlNumber(1), value);
        }