public void non_default_conversion__uses_passed_comparator()
        {
            var converter = new ComputerTypeConverter(StringComparison.Ordinal);

            const string laptopToken = "LAPTOP";

            Assert.That(converter.TryConvert(laptopToken, out var result), Is.False);
        }
        public void strange_input__return__false()
        {
            var converter = new ComputerTypeConverter();

            const string garbageToken = "surface 2";

            Assert.That(converter.TryConvert(garbageToken, out var result), Is.False);
        }
        public void laptop_input_clean__return__true()
        {
            var converter = new ComputerTypeConverter();

            const string laptopToken = "desktop";

            Assert.That(converter.TryConvert(laptopToken, out var result));
        }
        public void laptop_input_dirty__result__is_laptop()
        {
            var converter = new ComputerTypeConverter();

            const string laptopToken = " LaptoP  ";

            converter.TryConvert(laptopToken, out var result);

            Assert.That(result, Is.EqualTo(ComputerType.Laptop));
        }
        public void desktop_input_dirty__result__is_desktop()
        {
            var converter = new ComputerTypeConverter();

            const string desktopToken = " DESKTop  ";

            converter.TryConvert(desktopToken, out var result);

            Assert.That(result, Is.EqualTo(ComputerType.Desktop));
        }