Esempio n. 1
0
 public void KeyOptions_Should_Produce_A_Complex_Array_For_Multiple_Values()
 {
     var arry = new KeyOptions();
     arry.Add(1);
     arry.Add(new DateTime(2011,1,1));
     var result = arry.ToString();
     Assert.AreEqual("[1,%222011-01-01T00%3a00%3a00%22]", result);
 }
Esempio n. 2
0
 public void KeyOptions_Should_Produce_Squirley_Brackets_for_CouchValueMax()
 {
     var arry = new KeyOptions();
     arry.Add(CouchValue.MaxValue);
     arry.Add(1);
     var result = arry.ToString();
     Assert.AreEqual("[{},1]", result);
 }
Esempio n. 3
0
 public void KeyOptions_Should_Produce_IsoTime()
 {
     var arry = new KeyOptions();
     arry.Add(CouchValue.MinValue);
     arry.Add(new DateTime(2011,1,1));
     var result = arry.ToString();
     Assert.AreEqual("[null,%222011-01-01T00%3a00%3a00%22]", result);
 }
Esempio n. 4
0
 public void KeyOptions_Should_Produce_IsoTime()
 {
     var arry = new KeyOptions();
     arry.Add(CouchValue.Empty);
     arry.Add(new DateTime(2011,1,1));
     var result = arry.ToString();
     Assert.AreEqual("[{},\"2011-01-01T00:00:00\"]", result);
 }
Esempio n. 5
0
        public void KeyOptions_Should_Produce_IsoTime()
        {
            var arry = new KeyOptions();

            arry.Add(CouchValue.MinValue);
            arry.Add(new DateTime(2011, 1, 1));
            var result = arry.ToString();

            Assert.AreEqual("[null,%222011-01-01T00%3a00%3a00%22]", result);
        }
Esempio n. 6
0
        public void KeyOptions_Should_Produce_Squirley_Brackets_for_CouchValueMax()
        {
            var arry = new KeyOptions();

            arry.Add(CouchValue.MaxValue);
            arry.Add(1);
            var result = arry.ToString();

            Assert.AreEqual("[{},1]", result);
        }
Esempio n. 7
0
        public void KeyOptions_Should_Produce_A_Complex_Array_For_Multiple_Values()
        {
            var arry = new KeyOptions();

            arry.Add(1);
            arry.Add(new DateTime(2011, 1, 1));
            var result = arry.ToString();

            Assert.AreEqual("[1,%222011-01-01T00%3a00%3a00%22]", result);
        }
Esempio n. 8
0
 public void KeyOptions_Should_Produce_Single_Value_For_A_Single_Array()
 {
     var arry = new KeyOptions();
     arry.Add(1);
     var result = arry.ToString();
     Assert.AreEqual("1", result);
 }
Esempio n. 9
0
        public void KeyOptions_Should_Produce_Single_Value_For_A_Single_Array()
        {
            var arry = new KeyOptions();

            arry.Add(1);
            var result = arry.ToString();

            Assert.AreEqual("1", result);
        }