public void ListVar_TestFormulaNoList() { //Arrange VariableList variableList = new VariableList(); //Act string formulaResult = variableList.GetFormula(); //Assert Assert.AreEqual(string.Empty, formulaResult, "List Formula"); }
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"); }