Akka.Interfaced.ProtobufSerializer.Tests.SerializeExceptionTest.TestBuiltinException C# (CSharp) Method

TestBuiltinException() private method

private TestBuiltinException ( ) : void
return void
        public void TestBuiltinException()
        {
            var serializer = new ProtobufSerializer(null);

            var exception = new ArgumentException("Test");
            var obj = new ResponseMessage { Exception = exception };
            var bytes = serializer.ToBinary(obj);

            var obj2 = (ResponseMessage)serializer.FromBinary(bytes, null);
            Assert.Equal(obj.Exception.GetType(), obj2.Exception.GetType());
        }