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); }
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); }