public void Select_COUNT__Distinct_Column1__From_Table() { using (var query = new Select().Count(Distinct.Column("Column1")).From.Table("Table")) { Assert.That(query.ToSql(), Is.EqualTo("SELECT COUNT(DISTINCT Column1) FROM Table")); } }