public void DecodeStringTest() { string encodedString = Convert.ToString(TestContext.DataRow["encodedString"]); int numberOfRails = Convert.ToInt32(TestContext.DataRow["numberOfRails"]); string expectedResult = Convert.ToString(TestContext.DataRow["decodedString"]); string actualResult = RailFenceCipher.DecodeString(encodedString, numberOfRails); Assert.AreEqual(expectedResult, actualResult, "expected and actual results are not equal.\ndecodedString = " + encodedString + "\nnumberOfRails = " + numberOfRails); }