[TestCategory("Temparature")] // Use Triat=Temparature public void GetCelcius_BasicUnitTest() { var viewModel = new WeatherViewModel(); var result = viewModel.GetCelcius(273); Assert.AreEqual(result, 0d); }
public void GetCelcius_MinMaxBoundaryValueUnitTest(double value) { viewModel = new WeatherViewModel(); //Assert.ThrowsException<ArgumentOutOfRangeException>(() => { viewModel.GetCelcius(value); }); viewModel.GetCelcius(value); }