Deveel.Data.FetchTests.FetchNext C# (CSharp) Method

FetchNext() private method

private FetchNext ( ) : void
return void
        public void FetchNext()
        {
            var row = AdminQuery.FetchNext("c1");

            Assert.IsNotNull(row);
            Assert.AreEqual(2, row.ColumnCount);

            var val1 = row.GetValue(0);
            var val2 = row.GetValue(1);

            Assert.IsNotNull(val1);
            Assert.IsNotNull(val2);

            Assert.IsInstanceOf<NumericType>(val1.Type);
            Assert.IsInstanceOf<StringType>(val2.Type);

            var id = ((SqlNumber) val1.Value).ToInt32();
            Assert.AreEqual(0, id);
        }