public void ConvertKeyTypeMismatch() { var pks = new[] { new PrimaryKeyInformation { Name = "pk1", Type = typeof(int) } }; var keys = new object[] { "abc" }; TableExtensions.GetTableKeys(pks, keys); }
public void ConvertKeyTypeMatches() { var pks = new[] { new PrimaryKeyInformation { Name = "pk1", Type = typeof(int) } }; var keys = new object[] { "1" }; TableExtensions.GetTableKeys(pks, keys); Assert.AreEqual(1, pks[0].Value); }