// Path: app/src/main/java/com/waynedgrant/cirrus/measures/Temperature.java
// public class Temperature {
//     private BigDecimal celsius;
//     private BigDecimal fahrenheit;
// 
//     public Temperature(BigDecimal celsius) {
//         this.celsius = celsius;
//         this.fahrenheit = (celsius.multiply(new BigDecimal("1.8"))).add(new BigDecimal("32"));
//     }
// 
//     public BigDecimal getValue(TemperatureUnit unit) {
//         BigDecimal value = null;
// 
//         switch (unit) {
//             case CELSIUS:
//                 value = celsius;
//                 break;
//             case FAHRENHEIT:
//                 value = fahrenheit;
//                 break;
//         }
// 
//         return value;
//     }
// }


import static junit.framework.Assert.assertEquals;
import com.waynedgrant.cirrus.measures.Temperature;
import org.junit.Test;
import java.math.BigDecimal;
package com.waynedgrant.cirrus.presentation.colorizers;





public class TestTemperatureColorizer {
    private TemperatureColorizer testee;

    @Test
    public void GIVEN_null_temperature_WHEN_color_requested_THEN_white_color_returned() {
        testee = new TemperatureColorizer(null);
        assertEquals(TemperatureColorizer.WHITE, testee.colorize());
    }

    @Test
    public void GIVEN_temperature_less_than_0_point_6_degrees_celsius_WHEN_color_requested_THEN_light_blue_color_returned() {
// Path: app/src/main/java/com/waynedgrant/cirrus/measures/Temperature.java
// public class Temperature {
//     private BigDecimal celsius;
//     private BigDecimal fahrenheit;
// 
//     public Temperature(BigDecimal celsius) {
//         this.celsius = celsius;
//         this.fahrenheit = (celsius.multiply(new BigDecimal("1.8"))).add(new BigDecimal("32"));
//     }
// 
//     public BigDecimal getValue(TemperatureUnit unit) {
//         BigDecimal value = null;
// 
//         switch (unit) {
//             case CELSIUS:
//                 value = celsius;
//                 break;
//             case FAHRENHEIT:
//                 value = fahrenheit;
//                 break;
//         }
// 
//         return value;
//     }
// }


// Path: app/src/test/java/com/waynedgrant/cirrus/presentation/colorizers/TestTemperatureColorizer.java
import static junit.framework.Assert.assertEquals;
import com.waynedgrant.cirrus.measures.Temperature;
import org.junit.Test;
import java.math.BigDecimal;

package com.waynedgrant.cirrus.presentation.colorizers;





public class TestTemperatureColorizer {
    private TemperatureColorizer testee;

    @Test
    public void GIVEN_null_temperature_WHEN_color_requested_THEN_white_color_returned() {
        testee = new TemperatureColorizer(null);
        assertEquals(TemperatureColorizer.WHITE, testee.colorize());
    }

    @Test
    public void GIVEN_temperature_less_than_0_point_6_degrees_celsius_WHEN_color_requested_THEN_light_blue_color_returned() {
        testee = new TemperatureColorizer(new Temperature(new BigDecimal("0.5")));