示例#1
0
        public void return_rain_mm_when_user_units_defined()
        {
            var userUnitsService = new UserUnitsService();

            userUnitsService.SetUserUnits(new UserUnits("0", "0", "0"));
            Check.That(userUnitsService.GetRainUnit()).IsEqualTo(RainUnit.Millimeters);
        }
示例#2
0
        public void return_rain_undefined_if_no_user_units_retrieve()
        {
            var userUnitsService = new UserUnitsService();

            Check.That(userUnitsService.GetRainUnit()).IsEqualTo(RainUnit.Undefined);
        }