Beispiel #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/>");
        }
Beispiel #3
0
        public void SingleWord()
        {
            TengwarMaker maker = new TengwarMaker();

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

            Assert.AreEqual(".mElI.", result);
        }
Beispiel #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);
        }
Beispiel #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);
        }