public void FieldCalledItem()
 {
     ItemField message = new ItemField.Builder { Item = 3 }.Build();
     FieldDescriptor field = ItemField.Descriptor.FindFieldByName("item");
     Assert.IsNotNull(field);
     Assert.AreEqual(3, (int)message[field]);
 }
Esempio n. 2
0
        public void FieldCalledItem()
        {
            ItemField message = new ItemField.Builder {
                Item = 3
            }.Build();
            FieldDescriptor field = ItemField.Descriptor.FindFieldByName("item");

            Assert.NotNull(field);
            Assert.AreEqual(3, (int)message[field]);
        }