public void 手配チーテスト() { Tehai testTehai = new Tehai(new List <string> { "1m", "2m", "3m", "4m", "5m", "6m", "7m", "8m", "9m", "1s", "2s", "3s", "4s" }); testTehai.Tsumo(new Pai("5s")); //chi var actor = 0; var target = 3; var furopai = new Pai("6s"); var consumed = new List <Pai> { new Pai("4s"), new Pai("5s") }; consumed.Sort(); Assert.IsTrue(testTehai.tehai.Contains(new Pai("4s"))); Assert.IsTrue(testTehai.tehai.Contains(new Pai("5s"))); //実施 testTehai.Chi(actor, target, furopai, consumed); //フーロオブジェクトの構成が正しいか Assert.AreEqual(testTehai.furos[0].ftype, MJUtil.TartsuType.MINSYUN); Assert.AreEqual(testTehai.furos[0].furopai, furopai); CollectionAssert.AreEqual(testTehai.furos[0].consumed, consumed); //晒した牌が手配に残っていないか Assert.IsFalse(testTehai.tehai.Contains(new Pai("4s"))); Assert.IsFalse(testTehai.tehai.Contains(new Pai("5s"))); }