Beispiel #1
0
        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");
        }
Beispiel #2
0
        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);
        }