fix(tests): remove outdated tests

This should have been part of d8be858359
This commit is contained in:
Oliver Booth 2023-05-14 16:31:40 +01:00
parent d8be858359
commit 8d7ca6ea0a
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61
1 changed files with 0 additions and 31 deletions

View File

@ -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()
{