public void FormatMachineGear_NoEnumValue() { var userPreferences = new UserPreferences(); var csvUserPreference = AutoMapperUtility.Automapper.Map <CSVExportUserPreferences>(userPreferences); var formatter = new CSVExportFormatter(csvUserPreference, OutputTypes.PassCountLastPass); var result = formatter.FormatMachineGearValue((MachineGear)100); result.Should().Be("unknown: 100"); }
public void FormatMachineGear(MachineGear value, string expectedResult) { var userPreferences = new UserPreferences(); var csvUserPreference = AutoMapperUtility.Automapper.Map <CSVExportUserPreferences>(userPreferences); var formatter = new CSVExportFormatter(csvUserPreference, OutputTypes.PassCountLastPass); var result = formatter.FormatMachineGearValue(value); result.Should().Be(expectedResult); }