BridgeTests.Tests.TestCommunicationClass.TestUnmarshallingWithGeneralTypeAndByIndicatingTypeAsParameterAreTheSame C# (CSharp) Метод

TestUnmarshallingWithGeneralTypeAndByIndicatingTypeAsParameterAreTheSame() приватный Метод

        public void TestUnmarshallingWithGeneralTypeAndByIndicatingTypeAsParameterAreTheSame()
        {
            String result = GetJsonExampleString();
            MethodCallMessage unmarshalledResult = (MethodCallMessage)marshaller.UnmarshallObject(result, typeof(MethodCallMessage));
            MethodCallMessage unmarshalledResultType = marshaller.UnmarshallObject<MethodCallMessage>(result);

            Assert.IsTrue(unmarshalledResult.Equals(unmarshalledResultType));
        }