Пример #1
0
        public void IsRightType()
        {
            var any = Any.Pack(SampleMessages.CreateFullTestAllTypes());

            Assert.True(any.Is(TestAllTypes.Descriptor));
        }
Пример #2
0
        public void IsWrongType()
        {
            var any = Any.Pack(SampleMessages.CreateFullTestAllTypes());

            Assert.False(any.Is(TestOneof.Descriptor));
        }