Пример #1
0
        public void ListVar_TestFormulaNoList()
        {
            //Arrange
            VariableList variableList = new VariableList();

            //Act
            string formulaResult = variableList.GetFormula();

            //Assert
            Assert.AreEqual(string.Empty, formulaResult, "List Formula");
        }
Пример #2
0
        public void ListVar_TestFormulaForEmptyList()
        {
            //Arrange
            List <string> lstTemp               = new List <string>();
            VariableList  variableList          = new VariableList("TestList", lstTemp);
            string        formulaExpectedResult = String.Join(",", lstTemp.ToArray());

            //Act
            string formulaResult = variableList.GetFormula();

            //Assert
            Assert.AreEqual(formulaExpectedResult, formulaResult, "List Formula");
        }