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); }
public void EncodeTest_Basic() { StringReordering sr = new StringReordering(); String input = "this is a test string"; String output = sr.Encode(input); Assert.IsNotNull(output); Assert.AreNotEqual(input, output); }