Skip to content

Commit

Permalink
Clean up the asserts tests, removing the comments that no longer appl…
Browse files Browse the repository at this point in the history
…ies and reorg the helper routines.
  • Loading branch information
bclothier committed Oct 3, 2020
1 parent 1b793d5 commit e71328c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions RubberduckTests/UnitTesting/AssertTests.cs
Expand Up @@ -4,11 +4,6 @@

namespace RubberduckTests.UnitTesting
{
//NOTE: The tests for reference equity are ignored pending some way of figuring out how to test the correct behavior.
//These methods have to check to see if the parameters are COM objects (see https://github.com/rubberduck-vba/Rubberduck/issues/2848)
//to make the result match the VBA interpretations of reference and value types. Similarly, the SequenceEqual and NotSequenceEqual
//methods remain untested because they make several of the same Type tests that are AFAIK impossible to mock.

[TestFixture]
public class AssertTests
{
Expand All @@ -27,6 +22,11 @@ public void Cleanup()
AssertHandler.OnAssertCompleted -= AssertHandler_OnAssertCompleted;
}

private void AssertHandler_OnAssertCompleted(object sender, AssertCompletedEventArgs e)
{
_args = e;
}

[Category("Unit Testing")]
[Test]
public void IsTrueSucceedsWithTrueExpression()
Expand Down Expand Up @@ -278,11 +278,6 @@ public void InconclusiveShouldBeInconclusive()
Assert.AreEqual(TestOutcome.Inconclusive, _args.Outcome);
}

private void AssertHandler_OnAssertCompleted(object sender, AssertCompletedEventArgs e)
{
_args = e;
}

[Category("Unit Testing")]
[Test]
public void NullValuesAreEqual()
Expand Down

0 comments on commit e71328c

Please sign in to comment.