public void TestRecodeThreeWordRoundTripWithColon()
        {
            Recode recoder = new Recode();
            string data    = "ni: mije";
            string shorter = recoder.Shorten(data);

            Assert.AreEqual("ni: mj", shorter);
            string longer = recoder.ExpandTwoLetterWithSpaces(shorter);

            Assert.AreEqual(data, longer);
        }
        public void TestRecodeTwoWordRoundTripProperModifer()
        {
            Recode recoder = new Recode();
            string data    = "jan Mato";
            string shorter = recoder.Shorten(data);

            Assert.AreEqual("jn MATO", shorter);
            string longer = recoder.ExpandTwoLetterWithSpaces(shorter);

            Assert.AreEqual(data, longer);
        }
        public void TestRecodeTwoWordRoundTripPunctuate()
        {
            Recode recoder = new Recode();
            string data    = "soweli moku.";
            string shorter = recoder.Shorten(data);

            Assert.AreEqual("ow mk.", shorter);
            string longer = recoder.ExpandTwoLetterWithSpaces(shorter);

            Assert.AreEqual(data, longer);
        }
        public void TestRecodeThreeWordRoundTrip()
        {
            Recode recoder = new Recode();
            string data    = "soweli moku moku";
            string shorter = recoder.Shorten(data);

            Assert.AreEqual("ow mk mk", shorter, "Shorten failed");
            string longer = recoder.ExpandTwoLetterWithSpaces(shorter);

            Assert.AreEqual(data, longer, "Expand failed");
        }
        public void TestRecodeOneWordRoundTrip()
        {
            Recode recoder = new Recode();
            string data    = "soweli";
            string shorter = recoder.Shorten(data);

            Assert.AreEqual("ow", shorter);
            string longer = recoder.ExpandTwoLetterWithSpaces(shorter);

            Assert.AreEqual(data, longer);
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            string toConvert = Server.HtmlEncode(txtInput.Text);

            txtOutput.Text        = recoder.ExpandTwoLetterWithSpaces(toConvert);
            outputSection.Visible = true;

            txtJapanese.Text      = recoder.ExpandJapanese(toConvert);
            txtChinese.Text       = recoder.ExpandChinese(toConvert);
            txtUnicode.Text       = recoder.ExpandUnicode(toConvert);
            outputSection.Visible = true;
        }