public void WeirdTypeGetsConvertedToInt() { var weirdValue = new WeirdType(1); var db = DatabaseHelper.Open(); var user = db.Users.FindById(weirdValue); Assert.AreEqual(1, user.Id); }
public void WeirdTypeUsedInQueryGetsConvertedToInt() { var weirdValue = new WeirdType(1); var db = DatabaseHelper.Open(); var user = db.Users.QueryById(weirdValue).FirstOrDefault(); Assert.IsNotNull(user); Assert.AreEqual(1, user.Id); }