示例#1
0
 public void CheckMonthDefault()
 {
     String scurMonth = DateTime.Now.Month.ToString();
     scurMonth = "0" + scurMonth;
     //String sMonth = curMonth.ToString();
     MIB.Menux tmpForm = new MIB.Menux();
     Assert.AreEqual(scurMonth, tmpForm.GetCBBMonth().Items[tmpForm.GetCBBMonth().SelectedIndex]);
 }
示例#2
0
 public void CheckYearDefault()
 {
     
     String scurYear = DateTime.Now.Year.ToString();
     //scurMonth = "0" + scurMonth;
     //String sMonth = curMonth.ToString();
     MIB.Menux tmpForm = new MIB.Menux();            
    Assert.AreEqual(scurYear, tmpForm.GetCBBYear().Items[tmpForm.GetCBBYear().SelectedIndex]);
 }