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