Test RecyclableList.ConstructorSourceShouldInitializeList added.
This commit is contained in:
1 parent
230401a56b
commit
d4a63d5d33
1 file changed
+14
@@ -308,5 +308,19 @@ namespace Recyclable.CollectionsTests
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void ConstructorSourceShouldInitializeList()
|
||||||
|
{
|
||||||
|
// Prepare
|
||||||
|
var testData = _testData.ToArray();
|
||||||
|
|
||||||
|
// Act
|
||||||
|
var list = new RecyclableList<int>(testData);
|
||||||
|
|
||||||
|
// Validate
|
||||||
|
_ = list.Should().HaveCount(testData.Length)
|
||||||
|
.And.ContainInConsecutiveOrder(testData)
|
||||||
|
.And.BeEquivalentTo(testData);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user