public void DecoderTest(String expected, String input) { StringReordering sr = new StringReordering(); String output = sr.Decode(input); Assert.IsNotNull(output); Assert.AreNotEqual(input, output); Assert.AreEqual(expected, output); }
public void EncoderDecoder_RoundTrip() { StringReordering sr = new StringReordering(); String input = StringGenerator.GetString(StringType.Sentence); String output = sr.Encode(input); String actual = sr.Decode(output); Assert.AreEqual(input, actual); }