예제 #1
0
        public void ExpandedPropertyTitlesReturnsEmptyWhenPropertiesIsEmpty()
        {
            var testCase = new TestCreateQuantaAll(Type, SQLExecuter, DimensionAndGroupTitlesJoined, SumOfScalarTitlesJoined, ScalarTitlesJoined,
                                                   DimensionsAndGroups, Periods, properties: null, PropertyTitles, false);

            var wasSuccessful = false;

            testCase.Create();

            if (!testCase.GetOutputFromExpandedPropertyTitlesMethod.Equals(string.Empty))
            {
                wasSuccessful = true;
            }

            Assert.False(wasSuccessful);
        }
예제 #2
0
        public void ThrowArgumentNullExceptionWhenDimensionsAndGroupsIsNull()
        {
            var testCase = new TestCreateQuantaAll(Type, SQLExecuter, DimensionAndGroupTitlesJoined, SumOfScalarTitlesJoined, ScalarTitlesJoined,
                                                   dimensionsAndGroups: null, Periods, Properties, PropertyTitles, false);

            var wasSuccessful = false;

            try
            {
                testCase.Create();
                wasSuccessful = true;
            }
            catch (ArgumentNullException ex)
            {
                Assert.Equal("DimensionsAndGroups", ex.ParamName);
            }

            Assert.False(wasSuccessful);
        }