Exemplo n.º 1
0
        public void CaptializeFinal()
        {
            TengwarMaker maker = new TengwarMaker();

            string capitalized = maker.Captitalize("pilin", 4);

            Assert.AreEqual("piliN", capitalized);
        }
        protected void btnConvert_Click(object sender, EventArgs e)
        {
            TengwarMaker maker = new TengwarMaker();

            maker.sb.Clear();
            maker.Convert(HttpUtility.HtmlEncode(txtInput.Text));
            txtOutput.Text = maker.sb.ToString().Replace("\n", "<br/>");
        }
Exemplo n.º 3
0
        public void SingleWord()
        {
            TengwarMaker maker = new TengwarMaker();

            maker.sb.Clear();
            maker.Convert("meli.");
            string result = maker.sb.ToString();

            Assert.AreEqual(".mElI.", result);
        }
Exemplo n.º 4
0
        public void SingleSentence2()
        {
            TengwarMaker maker = new TengwarMaker();

            maker.sb.Clear();
            maker.Convert("mi pilin pona.");
            string result = maker.sb.ToString();

            Assert.AreEqual(".mI pilIN ponA.", result);
        }
Exemplo n.º 5
0
        public void SingleSentence()
        {
            TengwarMaker maker = new TengwarMaker();

            maker.sb.Clear();
            maker.Convert("mi wile unpa e meli.");
            string result = maker.sb.ToString();

            Assert.AreEqual(".mI wilE quMpa qe mElI.", result);
        }