public void Should_Throw_When_Value_Is_Null() { var result = Record.Exception(() => ByteArrayExtensions.StartsWith(null, new byte[] { })); AssertEx.IsArgumentNullException(result, "value"); }