public void Check_NguThuDon_Mau_Hoi() { Tru tru = LookUpTable.NguThuDon(CanEnum.Mau, ChiEnum.Hoi); Assert.AreEqual <CanEnum>(CanEnum.Quy, tru.ThienCan.Can); Assert.AreEqual <ChiEnum>(ChiEnum.Hoi, tru.DiaChi.Ten); }
public void Check_NguThuDon_Dinh_Dan() { Tru tru = LookUpTable.NguThuDon(CanEnum.Dinh, ChiEnum.Dan); Assert.AreEqual <CanEnum>(CanEnum.Nham, tru.ThienCan.Can); Assert.AreEqual <ChiEnum>(ChiEnum.Dan, tru.DiaChi.Ten); }
public void Check_NguThuDon_Binh_Suu() { Tru tru = LookUpTable.NguThuDon(CanEnum.Binh, ChiEnum.Suu); Assert.AreEqual <CanEnum>(CanEnum.Ky, tru.ThienCan.Can); Assert.AreEqual <ChiEnum>(ChiEnum.Suu, tru.DiaChi.Ten); }
public void Check_NguThuDon_At_Than() { Tru tru = LookUpTable.NguThuDon(CanEnum.At, ChiEnum.Than); Assert.AreEqual <CanEnum>(CanEnum.Giap, tru.ThienCan.Can); Assert.AreEqual <ChiEnum>(ChiEnum.Than, tru.DiaChi.Ten); }
public void Check_NguThuDon_Giap_Mao() { Tru tru = LookUpTable.NguThuDon(CanEnum.Giap, ChiEnum.Mao); Assert.AreEqual <CanEnum>(CanEnum.Dinh, tru.ThienCan.Can); Assert.AreEqual <ChiEnum>(ChiEnum.Mao, tru.DiaChi.Ten); }
static void Main(string[] args) { TongHopCanChi.Init(); LookUpTable.Init(); var dan = from chi in TongHopCanChi.MuoiHaiDiaChi where chi.Ten == ChiEnum.Dan select chi; var ngo = TongHopCanChi.MuoiHaiDiaChi.Single(u => u.Ten == ChiEnum.Ngo); //NguHanhEnum nh; //LookUpTable.NapAm.TryGetValue(new Tuple<CanEnum, ChiEnum>(CanEnum.At, ChiEnum.None),out nh); var vts = LookUpTable.VongTruongSinh(CanEnum.Quy, ChiEnum.Mao); var truNguHoDon = LookUpTable.NguHoDon(CanEnum.Quy, ChiEnum.Hoi); var truNguThuDon = LookUpTable.NguThuDon(CanEnum.Quy, ChiEnum.Hoi); var canNgay = new ThienCan(CanEnum.At); var can = new ThienCan(CanEnum.Giap); SettingRules.SetThapThan(canNgay, can); Console.ReadKey(); }