public void StringDimensionExtensionUsageWhenParamsIsNull() { var dimension = new Dimension <string, Person>(MethodBase.GetCurrentMethod().Name, k => k.Gender); dimension.BuildEnum(null); Assert.Fail("The expected exception was not thrown."); }
public void StringDimensionExtensionUsageWhenDimensionIsNull() { Dimension <string, Person> dimension = null; dimension.BuildEnum(); Assert.Fail("The expected exception was not thrown."); }
public void StringDimensionIsCorrectParentAssigned() { var dimension = new Dimension <string, Person>(MethodBase.GetCurrentMethod().Name, k => k.Gender); var dimensionEntries = dimension.BuildEnum(BaseStringGenderArray); foreach (var dimensionEntry in dimensionEntries) { if (dimensionEntry.Parent != dimension) { Assert.Fail("Parent is not the same as initialized"); } } }