コード例 #1
0
        public void ToString_GivenColumnValues_ShouldReturnExpectedStatement(string tableName, string columnName, string columnAlias, string expectedStatement)
        {
            //---------------Set up test pack-------------------
            var selectColumn = new ColumnModel(tableName, columnName, columnAlias)
            {
                DatabaseProvider = new SqlServerDatabaseProvider()
            };
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            var selectStatement = selectColumn.ToString();

            //---------------Test Result -----------------------
            Assert.AreEqual(expectedStatement, selectStatement);
        }