コード例 #1
0
        public void ShouldThrowIOExceptionNotInvalidOperationExceptionTest()
        {
            var stream     = new UnreadableStream();
            var serializer = new BinarySerializer();

            Assert.ThrowsException <IOException>(() => serializer.Deserialize <int>(stream));
        }
コード例 #2
0
 public void ShouldThrowIOExceptionNotInvalidOperationExceptionTest()
 {
     var stream = new UnreadableStream();
     var serializer = new BinarySerialization.BinarySerializer();
     serializer.Deserialize<int>(stream);
 }