public void ShouldThrowWhenPackTypeIsNotSupported() { var reader = new PackStreamReader(new MemoryStream(), BoltReader.StructHandlers); var ex = Record.Exception(() => reader.ReadValue((PackStream.PackType) 100)); ex.Should().NotBeNull(); ex.Should().BeOfType <ArgumentOutOfRangeException>(); }