public void CreateKeyRangeOpenClosed() { var openClosed = KeyRange.OpenClosed(new Key(1L, 3.14), new Key(100L, 100.0)); Assert.False(openClosed.BeginInclusive); Assert.True(openClosed.EndInclusive); Assert.Equal(new Key(1L, 3.14), openClosed.BeginAt); Assert.Equal(new Key(100L, 100.0), openClosed.End); Assert.Equal( new V1.KeyRange { StartOpen = new ListValue { Values = { new[] { new Value { StringValue = "1" }, new Value{ NumberValue = 3.14 } } } }, EndClosed = new ListValue { Values = { new[] { new Value { StringValue = "100" }, new Value{ NumberValue = 100.0 } } } } }, openClosed.Protobuf); }