Skip to content

Commit e71328c

Browse files
committed
Clean up the asserts tests, removing the comments that no longer applies and reorg the helper routines.
1 parent 1b793d5 commit e71328c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

RubberduckTests/UnitTesting/AssertTests.cs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44

55
namespace RubberduckTests.UnitTesting
66
{
7-
//NOTE: The tests for reference equity are ignored pending some way of figuring out how to test the correct behavior.
8-
//These methods have to check to see if the parameters are COM objects (see https://github.com/rubberduck-vba/Rubberduck/issues/2848)
9-
//to make the result match the VBA interpretations of reference and value types. Similarly, the SequenceEqual and NotSequenceEqual
10-
//methods remain untested because they make several of the same Type tests that are AFAIK impossible to mock.
11-
127
[TestFixture]
138
public class AssertTests
149
{
@@ -27,6 +22,11 @@ public void Cleanup()
2722
AssertHandler.OnAssertCompleted -= AssertHandler_OnAssertCompleted;
2823
}
2924

25+
private void AssertHandler_OnAssertCompleted(object sender, AssertCompletedEventArgs e)
26+
{
27+
_args = e;
28+
}
29+
3030
[Category("Unit Testing")]
3131
[Test]
3232
public void IsTrueSucceedsWithTrueExpression()
@@ -278,11 +278,6 @@ public void InconclusiveShouldBeInconclusive()
278278
Assert.AreEqual(TestOutcome.Inconclusive, _args.Outcome);
279279
}
280280

281-
private void AssertHandler_OnAssertCompleted(object sender, AssertCompletedEventArgs e)
282-
{
283-
_args = e;
284-
}
285-
286281
[Category("Unit Testing")]
287282
[Test]
288283
public void NullValuesAreEqual()

0 commit comments

Comments
 (0)