Esempio n. 1
0
        public void Testpish()
        {
            string      input       = @"pish is X
how much is pish ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);

            Assert.AreEqual("pish is 10", output);
        }
Esempio n. 2
0
        public void Testtegj()
        {
            string      input       = @"tegj is L
how much is tegj ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);

            Assert.AreEqual("tegj is 50", output);
        }
Esempio n. 3
0
        public void Testglob()
        {
            string      input       = @"glob is I
how much is glob ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);

            Assert.AreEqual("glob is 1", output);
        }
Esempio n. 4
0
        public void Testprok()
        {
            string      input       = @"prok is V
how much is prok ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);

            Assert.AreEqual("prok is 5", output);
        }
Esempio n. 5
0
        public void TestHowMuch()
        {
            string      input       = @"glob is I
prok is V
pish is X
tegj is L
how much is pish tegj glob glob ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);

            Assert.AreEqual("pish tegj glob glob is 42", output);
        }
Esempio n. 6
0
        public void TestNoIdea()
        {
            string      input       = @"glob is I
prok is V
pish is X
tegj is L
how much wood could a woodchuck chuck if a woodchuck could chuck wood ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);

            Assert.AreEqual("I have no idea what you are talking about", output);
        }
Esempio n. 7
0
        public void TestHowMany_GlobProkSilver()
        {
            string      input       = @"glob is I
prok is V
pish is X
tegj is L
glob glob Silver is 34 Credits
how many Credits is glob prok Silver ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);

            Assert.AreEqual("glob prok Silver is 68 Credits", output);
        }
Esempio n. 8
0
        public void TestHowMany_GlobProkIron()
        {
            string      input       = @"glob is I
prok is V
pish is X
tegj is L
pish pish Iron is 3910 Credits
how many Credits is glob prok Iron ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);

            Assert.AreEqual("glob prok Iron is 782 Credits", output);
        }
Esempio n. 9
0
        public void TestHowMany_GlobProkGold()
        {
            string      input       = @"glob is I
prok is V
pish is X
tegj is L
glob prok Gold is 57800 Credits
how many Credits is glob prok Gold ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);

            Assert.AreEqual("glob prok Gold is 57800 Credits", output);
        }
Esempio n. 10
0
        public void TestHowManyEx()
        {
            string      input       = @"glob is I
prok is V
pish is X
tegj is L
glob glob Silver is 34 Credits
glob prok Gold is 57800 Credits
pish pish Iron is 3910 Credits
how much wood could a woodchuck chuck if a woodchuck could chuck wood ?
how many Silver is glob Gold ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);
            string      answer      = @"I have no idea what you are talking about
glob Gold is 850 Silver";

            Assert.AreEqual(answer, output);
        }
Esempio n. 11
0
        public void TestAll()
        {
            string      input       = @"glob is I
prok is V
pish is X
tegj is L
glob glob Silver is 34 Credits
glob prok Gold is 57800 Credits
pish pish Iron is 3910 Credits
how much is pish tegj glob glob ?
how many Credits is glob prok Silver ?
how many Credits is glob prok Gold ?
how many Credits is glob prok Iron ?
how much wood could a woodchuck chuck if a woodchuck could chuck wood ?";
            MessageMain messageMain = new MessageMain();
            var         output      = messageMain.Start(input);
            string      answer      = @"pish tegj glob glob is 42
glob prok Silver is 68 Credits
glob prok Gold is 57800 Credits
glob prok Iron is 782 Credits
I have no idea what you are talking about";

            Assert.AreEqual(answer, output);
        }