Avro.Test.TestProtocol.testExample C# (CSharp) Метод

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

private testExample ( ExampleProtocol example ) : void
example ExampleProtocol
Результат void
        private void testExample(ExampleProtocol example)
        {
            try
            {
                Protocol protocol = Protocol.Parse(example.Protocol);
                Assert.IsTrue(example.Valid);

                string json = protocol.ToString();
                Protocol protocol2 = Protocol.Parse(json);

                Assert.AreEqual(protocol, protocol2);

            }
            catch (Exception ex)
            {
                Assert.IsFalse(example.Valid, ex.ToString());
            }
        }
    }