Exemple #1
0
        public void FlipAtReturnsValueForColumnName()
        {
            var flip = new c.Flip(new c.Dict(new string[] { "Key_1" }, new object[] { "Value_1" }));

            object result = flip.at("Key_1");

            Assert.IsNotNull(result);
            Assert.AreEqual("Value_1", result);
        }
Exemple #2
0
        public void FlipAtThrowsIfColumnNameIfNull()
        {
            var flip = new c.Flip(new c.Dict(new string[] { "Key_1" }, new object[] { "Value_1" }));

            Assert.Throws <IndexOutOfRangeException>(() => flip.at(null));
        }