Skip to content

Instantly share code, notes, and snippets.

@borismod
Last active April 29, 2016 10:47
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 borismod/fa3c07b4494c84f170d800077fd7cf6a to your computer and use it in GitHub Desktop.
Save borismod/fa3c07b4494c84f170d800077fd7cf6a to your computer and use it in GitHub Desktop.
[TestFixture]
public class SerializationTests
{
[Serializable]
public class Serial
{
public string Name { get; set; }
}
[Test]
public void Serial_IsBinarySerializable()
{
var serial = new Serial();
serial.Should().BeBinarySerializable();
}
[Test]
public void Serial_IsXmlSerializable()
{
var serial = new Serial();
serial.Should().BeXmlSerializable();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment