public string ConvertFunctionTableToStringTest(object parameter)
        {
            string result = PositionListCheckExe.ConvertFunctionTableToString(parameter);

            return(result);
            // TODO: add assertions to method PositionListCheckExeTest.ConvertFunctionTableToStringTest(Object)
        }
示例#2
0
        public void ConvertFunctionTableToString_SelectTestQualification_ReturnStringInclude_TeachersOCTQualification_Test()
        {
            //Arrange
            var parameter = new { Operate = "TableToString", StringValue = "", Delimiter = ";", TableName = "StaffQualification", CheckType = "Good" };
            var expect    = "Intermediate and Senior Divisions";
            //Act
            string checkvalue = PositionListCheckExe.ConvertFunctionTableToString(parameter);

            //Assert
            var result = checkvalue;//  myGridview.Rows.Count.ToString();

            StringAssert.Contains(result, expect, $" position list count {result}");
        }
示例#3
0
        public void ConvertFunctionTableToString_SelectTestTableInputTableWithBadCheck_ReturnStringInclude_BadValue3_Test()
        {
            //Arrange
            var parameter = new { Operate = "TableToString", StringValue = "", Delimiter = ";", TableName = "TestTable", CheckType = "Bad" };
            var expect    = "Bad Value 3";
            //Act
            string checkvalue = PositionListCheckExe.ConvertFunctionTableToString(parameter);

            //Assert
            var result = checkvalue;//  myGridview.Rows.Count.ToString();

            StringAssert.Contains(result, expect, $" position list count {result}");
        }