コード例 #1
0
        public void GetCount_StarSelect_Throws()
        {
            var configuration = new SqlGeneratorConfiguration();
            var configurator = new SqlGeneratorConfigurator(configuration);

            configurator.StarSelect();

            Assert.That(() => configurator.GetCount(), Throws.InvalidOperationException);
        }
コード例 #2
0
        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);
        }