Пример #1
0
        public void return_pressure_celsius_when_user_units_defined()
        {
            var userUnitsService = new UserUnitsService();

            userUnitsService.SetUserUnits(new UserUnits("0", "0", "0"));
            Check.That(userUnitsService.GetPressureUnit()).IsEqualTo(PressureUnit.Mbar);
        }
Пример #2
0
        public void return_pressure_undefined_if_no_user_units_retrieve()
        {
            var userUnitsService = new UserUnitsService();

            Check.That(userUnitsService.GetPressureUnit()).IsEqualTo(PressureUnit.Undefined);
        }