public void TestMeetSaves() { Console.WriteLine("Inside " + GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name); SavingJsonSvcImpl savingImplObject = new SavingJsonSvcImpl(); bool test = savingImplObject.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 TestOpenMeetInvalidFile() { Console.WriteLine("Inside " + GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name); SavingJsonSvcImpl savingImplObject = new SavingJsonSvcImpl(); Meet openedMeet = new Meet(); openedMeet = savingImplObject.openMeet("abcdefghijklmnopqrstuvwxyz.1234567890"); 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"); }
public void TestMeetOpens() { Console.WriteLine("Inside " + GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name); SavingJsonSvcImpl savingImplObject = new SavingJsonSvcImpl(); Meet openedMeet = savingImplObject.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"); }