public void TestSentence6B_Wrong_Data()
 {
     var builder = new HealthProfilesKeyMessage4Builder
     {
         data = new KeyMessageData
         {
             AdultHipFracturesSignificance = Significance.Worse,
             AdultSTISignificance = Significance.Worse,
             AdultKilledAndSeriouslyInjuredOnRoadsSignificance = Significance.Better,
             AdultIncidenceOfTBSignificance = Significance.Worse
         }
     };
     var sentence = builder.GetSentence6(Significance.Better);
     Assert.AreNotEqual(
         "Rates of hip fractures and sexually transmitted infections are worse than average.",
         sentence);
 }
 public void TestSentence6B_HipFractures_Worse_STI_Worse_KilledAndSeriouslyInjuredOnRoads_Better()
 {
     var builder = new HealthProfilesKeyMessage4Builder
     {
         data = new KeyMessageData
         {
             AdultHipFracturesSignificance = Significance.Better,
             AdultSTISignificance = Significance.Better,
             AdultKilledAndSeriouslyInjuredOnRoadsSignificance = Significance.Better,
             AdultIncidenceOfTBSignificance = Significance.Worse
         }
     };
     var sentence = builder.GetSentence6(Significance.Better);
     Assert.AreEqual(
         "Rates of hip fractures, sexually transmitted infections and people killed and seriously injured on roads are better than average.",
         sentence);
 }
 public void TestSentence6B_STI_Better()
 {
     var builder = new HealthProfilesKeyMessage4Builder
     {
         data = new KeyMessageData
         {
             AdultHipFracturesSignificance = Significance.Worse,
             AdultSTISignificance = Significance.Better,
             AdultKilledAndSeriouslyInjuredOnRoadsSignificance = Significance.Worse,
             AdultIncidenceOfTBSignificance = Significance.Worse
         }
     };
     var sentence = builder.GetSentence6(Significance.Better);
     Assert.AreEqual(
         "The rate of sexually transmitted infections is better than average.",
         sentence);
 }
 public void TestSentence6A_KilledAndSeriouslyInjuredOnRoads_Worse()
 {
     var builder = new HealthProfilesKeyMessage4Builder
     {
         data = new KeyMessageData
         {
             AdultHipFracturesSignificance = Significance.Better,
             AdultSTISignificance = Significance.Better,
             AdultKilledAndSeriouslyInjuredOnRoadsSignificance = Significance.Worse,
             AdultIncidenceOfTBSignificance = Significance.Better
         }
     };
     var sentence = builder.GetSentence6(Significance.Worse);
     Assert.AreEqual(
         "The rate of people killed and seriously injured on roads is worse than average.",
         sentence);
 }