public void Convert_1_Row() { var input = "PAYPALISHIRING"; var result = ZigZagConversion.Convert(input, 1); Assert.AreEqual("PAYPALISHIRING", result); }
public void Convert_4_Row() { var input = "PAYPALISHIRING"; var result = ZigZagConversion.Convert(input, 4); Assert.AreEqual("PINAASRGYHPLII", result); }
public void Convert_3_Row() { var input = "PAYPALISHIRING"; var result = ZigZagConversion.Convert(input, 3); Assert.AreEqual("PAHNAPLSIIGYIR", result); }
public void Convert_2_Row() { var input = "PAYPALISHIRING"; var result = ZigZagConversion.Convert(input, 2); Assert.AreEqual("PPIINAYALSHRIG", result); }
public void Test(string input, int rowNumber, string expected) { var actul = new ZigZagConversion(); var rslt = actul.Convert(input, rowNumber); Assert.Equal(expected, rslt); }
public void Convert_ShouldConvert_StringToZigZag( string input, int numberOfRows, string expectedOutput) { // Arrange var converter = new ZigZagConversion(); // Act var output = converter.Convert(input, numberOfRows); // Assert output.Should().Be(expectedOutput); }
public void Test_Convert(string inputStr, int inputNo, string output) { var actual = _objUnderTest.Convert(inputStr, inputNo); Assert.Equal(output, actual); }