Пример #1
0
 public void ToArray()
 {
     Assert.Equal(0, ImmutableArrayExtensions.ToArray(empty).Length);
     Assert.Throws <NullReferenceException>(() => ImmutableArrayExtensions.ToArray(emptyDefault));
     Assert.Equal(manyElements.ToArray(), ImmutableArrayExtensions.ToArray(manyElements));
 }