예제 #1
0
        public void ToFahrenheit_When100Celsius_Expect212()
        {
            // Arrange
            var converter = new TemperatureConverter();

            // Act
            var actual = converter.ToFahrenheit(100);

            // Assert
            Assert.AreEqual(212, actual);
        }
예제 #2
0
        public void ToFahrenheit_WhenZeroCelsius_Expect32()
        {
            // Arrange
            var converter = new TemperatureConverter();

            // Act
            var temperature = converter.ToFahrenheit(0);

            // Assert
            Assert.AreEqual(32, temperature);
        }
예제 #3
0
        public void ToCelsius_When32F_Expect0C()
        {
            // Arrange
            var converter = new TemperatureConverter();

            // Act
            var actual = converter.ToCelsius(32);

            // Assert
            Assert.AreEqual(0, actual);
        }