Пример #1
0
 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]);
 }
Пример #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]);
        }