Exemplo n.º 1
0
        public void ShouldThrowIOExceptionNotInvalidOperationExceptionTest()
        {
            var stream     = new UnreadableStream();
            var serializer = new BinarySerializer();

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