mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 02:58:47 +00:00
fix(tests): remove outdated tests
This should have been part of d8be858359
This commit is contained in:
parent
d8be858359
commit
8d7ca6ea0a
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user