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); }
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)); }