public void passthrough_if_no_matches() { Should.Throw <BadImageFormatException>(() => { theTransforms.TransformAndThrow(new BadImageFormatException()); }); }
internal static void WrapAndThrow(NpgsqlCommand command, Exception exception) { if (command != null) { exception.Data[nameof(NpgsqlCommand)] = command; } _transforms.TransformAndThrow(exception); }