public void AddIssue_IssueIsNotNull_ReturnsNotSupported() { using (IIssueStore store = new OutputFileIssueStore(TestFile, Enumerable.Empty <A11yElement>())) { using (ShimsContext.Create()) { Assert.AreEqual(AddResult.NotSupported, store.AddIssue(new ShimIssue())); } } }
public void AddIssue_IssueIsNull_ThrowsArgumentNullException() { using (IIssueStore store = new OutputFileIssueStore(TestFile, Enumerable.Empty <A11yElement>())) { try { store.AddIssue(null); } catch (ArgumentNullException e) { Assert.AreEqual("issue", e.ParamName); throw; } } }