Skip to content

Commit

Permalink
fix(tests): remove outdated tests
Browse files Browse the repository at this point in the history
This should have been part of d8be858
  • Loading branch information
oliverbooth committed May 14, 2023
1 parent d8be858 commit 8d7ca6e
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions X10D.Tests/src/Linq/EnumerableTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,6 @@ namespace X10D.Tests.Linq;
[TestFixture]
public class EnumerableTests
{
[Test]
public void ConcatOne_ShouldReturnConcatenatedSequence_GivenValidSequenceAndValue()
{
IEnumerable<string> source = new[] {"Hello"};
string[] expected = {"Hello", "World"};

string[] actual = source.ConcatOne("World").ToArray();

Assert.That(actual, Has.Length.EqualTo(2));
CollectionAssert.AreEqual(expected, actual);
}

[Test]
public void ConcatOne_ShouldReturnSingletonSequence_GivenEmptySequenceAndValidValue()
{
IEnumerable<string> source = Enumerable.Empty<string>();
string[] expected = {"Foobar"};

string[] actual = source.ConcatOne("Foobar").ToArray();

Assert.That(actual, Has.Length.EqualTo(1));
CollectionAssert.AreEqual(expected, actual);
}

[Test]
public void ConcatOne_ShouldThrowArgumentNullException_GivenNullSource()
{
IEnumerable<string>? source = null;
Assert.Throws<ArgumentNullException>(() => source!.ConcatOne("Foobar").ToArray());
}

[Test]
public void Except_ShouldFilterElements_GivenMatchingElements()
{
Expand Down

0 comments on commit 8d7ca6e

Please sign in to comment.