private static void TestRemoveLabelFromNullByteIndex(ByteSource byteSourceSparse) { byteSourceSparse.IsValidIndex(0).Should().Be(true); byteSourceSparse.Bytes[0].Should().Be(null); byteSourceSparse.Bytes.Should().BeOfType(typeof(StorageSparse <ByteEntry>)); byteSourceSparse.Invoking(x => x.RemoveAllAnnotationsAt(0, ByteSourceLabelProvider.IsLabel)) .Should().NotThrow <NullReferenceException>(); }