1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 23:45:42 +00:00

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

View File

@ -6,37 +6,6 @@ namespace X10D.Tests.Linq;
[TestFixture] [TestFixture]
public class EnumerableTests 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] [Test]
public void Except_ShouldFilterElements_GivenMatchingElements() public void Except_ShouldFilterElements_GivenMatchingElements()
{ {