コード例 #1
0
        public void VerifyFunction()
        {
            Random random = new Random();

            IFunction function = BusinessObjectInitializer.CreateFunction();

            function.Name = DATestUtils.GenerateString(30, true, false);
            function.Id   = random.Next(1, 10);

            DataTable resultTable = SelectFunctionTest(function).Tables[0];

            //Verifies that the table contains the correct column names and order
            StringCollection columns = new StringCollection();

            columns.AddRange(new string[] { "Id",
                                            "Name" });
            DATestUtils.CheckTableStructure(resultTable, columns);
        }