public void TestDataTypes(string typeName, int id, TypeTestData data, string context) { using (var conn = new DataConnection(context)) { Assert.That(data.Func(typeName, this, conn), Is.EqualTo(data.Result)); } }
public void TestDataTypes(string typeName, int id, TypeTestData data, string context) { using (var conn = new DataConnection(context)) { var value = data.Func(typeName, this, conn); if (data.Result is NpgsqlPoint) { Assert.IsTrue(object.Equals(value, data.Result)); } else { Assert.AreEqual(value, data.Result); } } }