Skip to content

Commit ea806a4

Browse files
committed
Remove obsolete tests checking that the ctors really did throw an exception for invalid arguments.
1 parent b1efd9c commit ea806a4

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

RubberduckTests/Grammar/AnnotationTests.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Collections.Generic;
2-
using Microsoft.VisualStudio.TestTools.UnitTesting;
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
32
using Rubberduck.Parsing.Annotations;
43
using Rubberduck.VBEditor;
54

@@ -57,20 +56,6 @@ public void IgnoreTestAnnotation_TypeIsIgnoreTest()
5756
Assert.AreEqual(AnnotationType.IgnoreTest, annotation.AnnotationType);
5857
}
5958

60-
[TestMethod, ExpectedException(typeof(InvalidAnnotationArgumentException))]
61-
public void IgnoreAnnotation_TypeIsIgnore_NoParam()
62-
{
63-
var annotation = new IgnoreAnnotation(new QualifiedSelection(), new List<string>());
64-
Assert.AreEqual(AnnotationType.Ignore, annotation.AnnotationType);
65-
}
66-
67-
[TestMethod, ExpectedException(typeof(InvalidAnnotationArgumentException))]
68-
public void FolderAnnotation_TypeIsFolder_NoParam()
69-
{
70-
var annotation = new FolderAnnotation(new QualifiedSelection(), new List<string>());
71-
Assert.AreEqual(AnnotationType.Folder, annotation.AnnotationType);
72-
}
73-
7459
[TestMethod]
7560
public void IgnoreAnnotation_TypeIsIgnore()
7661
{

0 commit comments

Comments
 (0)