public void ListVar_TestResetIndexValueForEmptyList() { //Arrange List <string> lstTemp = new List <string>(); VariableList variableList = new VariableList("TestList", lstTemp); //Act variableList.ResetValue(); //Assert Assert.AreEqual(0, variableList.CurrentValueIndex, "On Reset Index Value repositioned to 0"); }
public void ListVar_TestResetIndexValue() { //Arrange List <string> lstTemp = new List <string>(); lstTemp.Add("Friend"); lstTemp.Add("Love"); VariableList variableList = new VariableList("TestList", lstTemp); //Act variableList.ResetValue(); //Assert Assert.AreEqual(0, variableList.CurrentValueIndex, "On Reset Index Value repositioned to 0"); Assert.AreEqual(lstTemp[0], variableList.Value, "Reset Index Value"); }