public void Should_return_empty_instance_for_empty_enumerable() { var result = Enumerable.Empty <int>().ToReadonlyList(); Assert.Same(ReadonlyList.Empty <int>(), result); }
public void Should_return_empty_instance_for_null_array() { var result = ReadonlyList.Create((int[]?)null); Assert.Same(ReadonlyList.Empty <int>(), result); }