Esempio n. 1
0
        public void GetFightingStyleTest()
        {
            string text = "SOme guy is being bad man (clinching).";

            FightingStyle expected = FightingStyle.Clinch;
            FightingStyle actual   = WeblParser.GetFightingStyle(text, "SOme guy");

            Assert.AreEqual(expected, actual);

            text = _clinchRound;

            Round rr = WeblParser.ParseWeblRound(text);

            Assert.AreEqual(FightingStyle.Clinch, rr.Fighter1Round.Tactics.Style);
        }
Esempio n. 2
0
        public void TestDQRound()
        {
            Round rr = WeblParser.ParseWeblRound(_dqRound);

            Assert.AreEqual(FightResultType.DQ, rr.ResultType);
        }
Esempio n. 3
0
        public void TestKORound()
        {
            Round rr = WeblParser.ParseWeblRound(_koRound);

            Assert.AreEqual(FightResultType.Knockout, rr.ResultType);
        }
Esempio n. 4
0
        public void TestTKORound()
        {
            Round rr = WeblParser.ParseWeblRound(_tkoRound);

            Assert.AreEqual(FightResultType.TKO, rr.ResultType);
        }
Esempio n. 5
0
        public void ParseWeblRoundTest()
        {
            Round rr = WeblParser.ParseWeblRound(_roundText);

            Debug.Print("Hey");
        }