public List <GeneralCheck> ConvertFunctionStringToTableTest(object parameter)
        {
            List <GeneralCheck> result = PositionListCheckExe.ConvertFunctionStringToTable(parameter);

            return(result);
            // TODO: add assertions to method PositionListCheckExeTest.ConvertFunctionStringToTableTest(Object)
        }
示例#2
0
        public void ConvertFunctionStringToTable_SingalInputValue_ReturnOneRecordTest()
        {
            //Arrange
            var parameter = new { Operate = "StringToTable", StringValue = "as ad adada adaas dad;", Delimiter = ";", TableName = "", CheckType = "" };
            int expect    = 1;
            //Act
            List <GeneralCheck> checkList = PositionListCheckExe.ConvertFunctionStringToTable(parameter);

            //Assert
            int result = checkList.Count; //  myGridview.Rows.Count.ToString();

            Assert.AreEqual(expect, result, $" position list count {result}");
        }
示例#3
0
        public void ConvertFunctionStringToTable_BadInputValue_ReturnTableTest()
        {
            //Arrange
            var parameter = new { Operate = "StringToTable", StringValue = "33222; ;357;4;501;00012313;1;;24320824324", Delimiter = ";", TableName = "", CheckType = "" };
            int expect    = 8;
            //Act
            List <GeneralCheck> checkList = PositionListCheckExe.ConvertFunctionStringToTable(parameter);

            //Assert
            int result = checkList.Count; //  myGridview.Rows.Count.ToString();

            Assert.AreEqual(expect, result, $" position list count {result}");
        }