public void ShouldThrowIOExceptionNotInvalidOperationExceptionTest()
        {
            var stream     = new UnreadableStream();
            var serializer = new BinarySerializer();

            Assert.ThrowsException <IOException>(() => serializer.Deserialize <int>(stream));
        }
 public void ShouldThrowIOExceptionNotInvalidOperationExceptionTest()
 {
     var stream = new UnreadableStream();
     var serializer = new BinarySerialization.BinarySerializer();
     serializer.Deserialize<int>(stream);
 }