예제 #1
0
        public void IsWolf_False()
        {
            BitCondition con = new BitCondition();

            con.AddWerewolf(Agent.GetAgent(3));

            Assert.AreEqual(con.IsMatch(pattern), false);
        }
예제 #2
0
        public void IsPossessed_False()
        {
            BitCondition con = new BitCondition();

            con.AddPossessed(Agent.GetAgent(8));

            Assert.AreEqual(con.IsMatch(pattern), false);
        }
예제 #3
0
        public void IsWolf_True2()
        {
            BitCondition con = new BitCondition();

            con.AddWerewolf(Agent.GetAgent(8));

            Assert.AreEqual(con.IsMatch(pattern), true);
        }
예제 #4
0
        public void IsNotPossessed_True()
        {
            BitCondition con = new BitCondition();

            con.AddNotPossessed(Agent.GetAgent(8));

            Assert.AreEqual(con.IsMatch(pattern), true);
        }
예제 #5
0
        public void IsNotWerewolfTeam_False()
        {
            BitCondition con = new BitCondition();

            con.AddNotWerewolfTeam(Agent.GetAgent(7));
            con.AddNotWerewolfTeam(Agent.GetAgent(8));

            Assert.AreEqual(con.IsMatch(pattern), false);
        }
예제 #6
0
        public void IsNotWerewolfTeam_True()
        {
            BitCondition con = new BitCondition();

            con.AddNotWerewolfTeam(Agent.GetAgent(2));
            con.AddNotWerewolfTeam(Agent.GetAgent(3));

            Assert.AreEqual(con.IsMatch(pattern), true);
        }
예제 #7
0
        public void SpeedCheck1()
        {
            BitCondition con = new BitCondition();

            con.AddWerewolf(Agent.GetAgent(15));

            for (int i = 0; i < loop; i++)
            {
                bool a = con.IsMatch(pattern);
            }
        }