public void ExistsTest_SuccessFalse() { // arrange DashboardFileFactory target = new DashboardFileFactory(); DashboardFile file = target.CreateFile(this.contents, this.filename); // act bool actual = target.Exists(file); // assert Assert.IsFalse(actual); }
public void ExistsTest_FailureParamFile() { // arrange DashboardFileFactory target = new DashboardFileFactory(); // act try { target.Exists(null); Assert.Fail("exception not thrown"); } catch (ArgumentNullException) { } catch { Assert.Fail("Invalid exception"); } }