public void IsRightType() { var any = Any.Pack(SampleMessages.CreateFullTestAllTypes()); Assert.True(any.Is(TestAllTypes.Descriptor)); }
public void IsWrongType() { var any = Any.Pack(SampleMessages.CreateFullTestAllTypes()); Assert.False(any.Is(TestOneof.Descriptor)); }