Beispiel #1
0
        public void femaleOver30()
        {
            var sut = new CalcPrem();

            var result = sut.CalcPremium(31, "female");

            Assert.That(result, Is.EqualTo(3.5));
        }
Beispiel #2
0
        public void OtherGender()
        {
            var sut = new CalcPrem();

            var result = sut.CalcPremium(18, "other");

            Assert.That(result, Is.EqualTo(0));
        }
Beispiel #3
0
        public void maleOver50()
        {
            var sut = new CalcPrem();

            var result = sut.CalcPremium(51, "male");

            Assert.That(result, Is.EqualTo(2.5));
        }
Beispiel #4
0
        public void FemaleUnder18()
        {
            var sut = new CalcPrem();

            var result = sut.CalcPremium(17, "female");

            Assert.That(result, Is.EqualTo(0));
        }
Beispiel #5
0
        public void maleBetween18And35()
        {
            var sut = new CalcPrem();

            var result = sut.CalcPremium(19, "male");

            Assert.That(result, Is.EqualTo(6));
        }