public void TestSentence1_Significance_Same() { var builder = new HealthProfilesKeyMessage3Builder { data = new KeyMessageData { ObesityYear6Percentage = "19.2", ObesityYear6Count = "12,999", ObesityYear6Significance = Significance.Same } }; var sentence = builder.GetSentence1(); Assert.AreEqual("In Year 6, 19.2% (12,999) of children are classified as obese.", sentence); }
public void TestSentence1_Wrong_Data() { var builder = new HealthProfilesKeyMessage3Builder { data = new KeyMessageData { ObesityYear6Percentage = "30.2", ObesityYear6Count = "12,000", ObesityYear6Significance = Significance.Worse } }; var sentence = builder.GetSentence1(); Assert.AreNotEqual( "In Year 6, 19.2% (12,999) of children are classified as obese, worse than the average for England.", sentence); }