Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bruno-garcia/96ebcc8b7e7a8d5ac98024ebf45d4799 to your computer and use it in GitHub Desktop.
Save bruno-garcia/96ebcc8b7e7a8d5ac98024ebf45d4799 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