/// <summary> /// Populate the grid view with options /// </summary> private void LoadInputManipulationOptions() { if (gridInputManipulations.DataSource != null) { return; } gridInputManipulations.DataSource = InputManipulationHelper .GetMappings() .ToList(); }
public void HelperMethods_GetMappings_ReturnsAtLeastOneOutputFormat() { // arrange & act var result = InputManipulationHelper.GetMappings(_testAssembly); var resultTypes = result .Select(mapper => mapper.Type) .ToList(); // assert Assert.GreaterOrEqual(result.Count(), 1); Assert.Contains(typeof(TrimInputManipulation), resultTypes); }