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());
}
}
}