public void CategoryRetriever_Throws_ArgumentException_If_Bmi_Is_Less_Than_Zero()
 {
     var categoryRetriever = new CategoryRetriever();
     Assert.Throws<ArgumentException>(() => categoryRetriever.GetWeightCategory(-5));
 }
 public void CategoryRetriever_Returns_UnderWeight_If_Bmi_Is_Less_Than_185()
 {
     var categoryRetriever = new CategoryRetriever();
     WeightCategory category = categoryRetriever.GetWeightCategory(10);
     Assert.Equal(WeightCategory.UnderWeight, category);
 }
 public void CategoryRetriever_Returns_OverWeight_If_Bmi_Is_Exactly_299()
 {
     var categoryRetriever = new CategoryRetriever();
     WeightCategory category = categoryRetriever.GetWeightCategory(25);
     Assert.Equal(WeightCategory.OverWeight, category);
 }
 public void CategoryRetriever_Returns_Obese_If_Bmi_Is_Morethan_30()
 {
     var categoryRetriever = new CategoryRetriever();
     WeightCategory category = categoryRetriever.GetWeightCategory(55);
     Assert.Equal(WeightCategory.Obese, category);
 }
 public void CategoryRetriever_Returns_NormalWeight_If_Bmi_Is_Exactly_249()
 {
     var categoryRetriever = new CategoryRetriever();
     WeightCategory category = categoryRetriever.GetWeightCategory(24.9);
     Assert.Equal(WeightCategory.Normal, category);
 }
 public void CategoryRetriever_DoesNot_Throw_ArgumentException_If_Bmi_Is_More_Than_Zero()
 {
     var categoryRetriever = new CategoryRetriever();
     Assert.DoesNotThrow(() => categoryRetriever.GetWeightCategory(5));
 }