Ejemplo n.º 1
0
 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()));
         }
     }
 }
Ejemplo n.º 2
0
 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;
         }
     }
 }