示例#1
0
        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);
        }
示例#2
0
        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);
        }