예제 #1
0
 public void cloudLoginWindowOpenAndClose2()
 {
     try
     {
         cloudLoginWindow winUT = new cloudLoginWindow("supaCoolCloudService");
         winUT.Show();
         winUT.Close();
     }
     catch (InvalidOperationException e)
     {
         Assert.Fail();
     }
     catch (ArgumentException e)
     {
         Assert.AreEqual(e.Message, "Only accepts box, oneDrive, or googleDrive as accountTypes");
     }
 }
예제 #2
0
 public void cloudLoginWindowOpenAndClose()
 {
     try
     {
         cloudLoginWindow winUT = new cloudLoginWindow("box");
         winUT.Show();
         winUT.Close();
     }
     catch (InvalidOperationException e)
     {
         Assert.Fail();
     }
     catch (ArgumentException e)
     {
         Assert.Fail();
     }
 }