usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingNUnit.Framework;usingGoogle.ProtocolBuffers.Descriptors;namespaceGoogle.ProtocolBuffers{[TestFixture]publicclassWireFormatTest{[Test]publicvoidFieldTypeToWireTypeMapping(){// Just test a few valuesAssert.AreEqual(WireFormat.WireType.Fixed64,WireFormat.FieldTypeToWireFormatMap[FieldType.SFixed64]);Assert.AreEqual(WireFormat.WireType.LengthDelimited,WireFormat.FieldTypeToWireFormatMap[FieldType.String]);Assert.AreEqual(WireFormat.WireType.LengthDelimited,WireFormat.FieldTypeToWireFormatMap[FieldType.Message]);}}}