public void TestIntIndexEqualitySerializationOldInterface()
        {
#pragma warning disable 612, 618
            var input = new RiakIntIndexEqualityInput("bucket", "index", 42);
#pragma warning restore 612, 618

            var s = Serialize(input.WriteJson);
            Assert.AreEqual(s, "\"inputs\":{\"bucket\":\"bucket\",\"index\":\"index_int\",\"key\":\"42\"}");
        }
        public void TestIntIndexEqualitySerializationWithType()
        {
            var input = new RiakIntIndexEqualityInput(new RiakIndexId("type", "bucket", "index"), 42);

            var s = Serialize(input.WriteJson);
            Assert.AreEqual(s, "\"inputs\":{\"bucket\":[\"type\",\"bucket\"],\"index\":\"index_int\",\"key\":\"42\"}");
        }
 public void TestIndexSuffixIsSetCorrectly()
 {
     var input = new RiakIntIndexEqualityInput(new RiakIndexId("bucket", "index"), 42);
     input.IndexId.IndexName.EndsWith(RiakConstants.IndexSuffix.Integer).ShouldBeTrue();
 }