public void GetCount_StarSelect_Throws() { var configuration = new SqlGeneratorConfiguration(); var configurator = new SqlGeneratorConfigurator(configuration); configurator.StarSelect(); Assert.That(() => configurator.GetCount(), Throws.InvalidOperationException); }
public void StarSelect_SetsStarSelectToTrue() { var configuration = new SqlGeneratorConfiguration(); var configurator = new SqlGeneratorConfigurator(configuration); configurator.StarSelect(); Assert.That(configuration.StarSelect, Is.True); Assert.That(configuration.DistinctCountPropertyExpression, Is.Null); }