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"); } }
public void cloudLoginWindowOpenAndClose() { try { cloudLoginWindow winUT = new cloudLoginWindow("box"); winUT.Show(); winUT.Close(); } catch (InvalidOperationException e) { Assert.Fail(); } catch (ArgumentException e) { Assert.Fail(); } }