Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bruno-garcia/6c63adde58ef7cb31a92f755006cdb45 to your computer and use it in GitHub Desktop.
Save bruno-garcia/6c63adde58ef7cb31a92f755006cdb45 to your computer and use it in GitHub Desktop.
[Fact]
public void Serialize_NullObject_ThrowsNullArgument()
{
var sut = new MessagePackSerializer(new MessagePackOptions());
Assert.Throws<ArgumentNullException>(() => { sut.Serialize((object) null); });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment