public void TestSentence2_MaleSlope_True_FemaleSlope_False() { var builder = new HealthProfilesKeyMessage2Builder() { data = new KeyMessageData { Area = Area(), IsMaleSlopeIndexOfInequalitySignificant = true, IsFemaleSlopeIndexOfInequalitySignificant = false, MaleSlopeIndexOfInequalityForLifeExpectancy = "7.5", FemaleSlopeIndexOfInequalityForLifeExpectancy = "4.0" } }; var sentence = builder.GetSentence(); Assert.AreEqual("Life expectancy is 7.5 years lower for men in the most deprived areas of Derby than in the least deprived areas.", sentence); }
public void TestSentence2_NullFemaleCount() { var builder = new HealthProfilesKeyMessage2Builder() { data = new KeyMessageData { Area = Area(), IsMaleSlopeIndexOfInequalitySignificant = true, IsFemaleSlopeIndexOfInequalitySignificant = true, MaleSlopeIndexOfInequalityForLifeExpectancy = "1", FemaleSlopeIndexOfInequalityForLifeExpectancy = null } }; Assert.AreEqual(string.Empty, builder.GetSentence()); }