public void TestSaveMeetMeetMgr() { Console.WriteLine("Inside " + GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name); MeetMgr mMgr = new MeetMgr(); bool test = mMgr.saveMeet(testFileName, testMeet); Assert.True(test, GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name + " Failed"); Console.WriteLine(GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name + " Passed"); }
public void TestOpenInvalidFileMeetMgr() { Console.WriteLine("Inside " + GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name); MeetMgr mMgr = new MeetMgr(); Meet openedMeet = mMgr.openMeet("zyxw.1234"); bool test = openedMeet == null; Assert.True(test, GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name + " Failed"); Console.WriteLine(GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name + " Passed"); }
private void mnuFileOpen_Click(object sender, EventArgs e) { if (ofdMeet.ShowDialog() == DialogResult.OK) { MeetMgr mm = new MeetMgr(); Meet newMeet = mm.openMeet(ofdMeet.FileName); MeetHub newForm = new MeetHub(newMeet); this.Hide(); newForm.ShowDialog(); this.Close(); } }
public void TestOpenMeetMeetMgr() { Console.WriteLine("Inside " + GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name); MeetMgr mMgr = new MeetMgr(); Meet openedMeet = mMgr.openMeet(testFileName); Console.WriteLine("Opened Meet:"); Console.WriteLine(openedMeet.ToString()); Console.WriteLine("\nControl Meet:"); Console.WriteLine(testMeet.ToString()); bool test = openedMeet.Equals(testMeet); Assert.True(test, GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name + " Failed"); Console.WriteLine(GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name + " Passed"); }