예제 #1
0
 @Test
 public void unitToStringTest_Celsius() {
   Temperature celciusTemperature = new Temperature(0, Temperature.Units.CELSIUS);
   assertEquals("буC", celciusTemperature.unitsToString());
 }
예제 #2
0
 @Test
 public void unitToStringTest_Fahrenheit() {
   Temperature fahrenheitTemperature = new Temperature(0, Temperature.Units.FAHRENHEIT);
   assertEquals("буF", fahrenheitTemperature.unitsToString());
 }
예제 #3
0
 @Test
 public void unitToStringTest_Kelvin() {
   Temperature kelvinTemperature = new Temperature(0, Temperature.Units.KELVIN);
   assertEquals("K", kelvinTemperature.unitsToString());
 }