Пример #1
0
        public void It_Should_Copy_Values()
        {
            var dict = new LiquidHash {
                { "key", LiquidString.Create("test") }
            };
            var x = new KeyValuePair <string, Option <ILiquidValue> > [1];

            dict.CopyTo(x, 0);
            Assert.Single(x);
        }
Пример #2
0
        public void It_Should_Copy_Values()
        {
            var dict = new LiquidHash {
                { "key", LiquidString.Create("test") }
            };
            var x = new KeyValuePair <string, Option <ILiquidValue> > [1];

            dict.CopyTo(x, 0);
            Assert.That(x.Length, Is.EqualTo(1));
        }