Deveel.Data.ShowTests.ShowSchema C# (CSharp) Method

ShowSchema() private method

private ShowSchema ( ) : void
return void
        public void ShowSchema()
        {
            var result = AdminQuery.ShowSchema();

            Assert.IsNotNull(result);

            Row row = null;
            Assert.DoesNotThrow(() => row = result.ElementAt(0));
            Assert.IsNotNull(row);

            var schemaName = row.GetValue(0).Value.ToString();
            var schemaType = row.GetValue(1).Value.ToString();

            Assert.AreEqual("APP", schemaName);
            Assert.AreEqual("DEFAULT", schemaType);

            Assert.DoesNotThrow(() => row = result.ElementAt(1));
            Assert.IsNotNull(row);

            schemaName = row.GetValue(0).Value.ToString();
            schemaType = row.GetValue(1).Value.ToString();

            Assert.AreEqual("INFORMATION_SCHEMA", schemaName);
            Assert.AreEqual("SYSTEM", schemaType);
        }