Esempio n. 1
0
        public void return_temperature_celsius_when_user_units_defined()
        {
            var userUnitsService = new UserUnitsService();

            userUnitsService.SetUserUnits(new UserUnits("0", "0", "0"));
            Check.That(userUnitsService.GetTemperatureUnit()).IsEqualTo(TemperatureUnit.Celsius);
        }
Esempio n. 2
0
        public void return_temperature_undefined_if_no_user_units_retrieve()
        {
            var userUnitsService = new UserUnitsService();

            Check.That(userUnitsService.GetTemperatureUnit()).IsEqualTo(TemperatureUnit.Undefined);
        }