public void IsWolf_False2() { BitMatchNumCondition con = new BitMatchNumCondition() { MinNum = 3, MaxNum = 3 }; con.AddWerewolf(Agent.GetAgent(1)); con.AddWerewolf(Agent.GetAgent(15)); con.AddWerewolf(Agent.GetAgent(7)); Assert.AreEqual(con.IsMatch(pattern), false); }
public void IsWolf_True1() { BitMatchNumCondition con = new BitMatchNumCondition() { MinNum = 2, MaxNum = 2 }; con.AddWerewolf(Agent.GetAgent(1)); con.AddWerewolf(Agent.GetAgent(15)); con.AddWerewolf(Agent.GetAgent(7)); Assert.AreEqual(con.IsMatch(pattern), true); }
public void SpeedCheck1() { BitMatchNumCondition con = new BitMatchNumCondition() { MinNum = 2, MaxNum = 2 }; con.AddWerewolf(Agent.GetAgent(1)); con.AddWerewolf(Agent.GetAgent(15)); con.AddWerewolf(Agent.GetAgent(7)); for (int i = 0; i < loop; i++) { bool a = con.IsMatch(pattern); } }