public void ToString_GiveStringAndValue_ReturnsStringAndValue() { //Arrange string expected = "Number of players: {0}"; var rolloverUtility = new RolloverUtility(1, 1, 2); var mainMenuItem = new MenuItem(expected, rolloverUtility); //Act var result = mainMenuItem.ToString(); //Assert Assert.AreEqual("Number of players: 1",result); }
public void ToString_GiveString_ReturnsString() { //Arrange string expected = "Number of players: {0}"; var mainMenuItem = new MenuItem(expected); //Act var result = mainMenuItem.ToString(); //Assert Assert.AreEqual(expected,result); }