public void PolicyBWitoutDescretionaryBonusTest() { String myline = "B100003,1/01/1970,18000,N,3000,43"; PolicyData NewPolicyData = new PolicyData(myline); Policy policy = new PolicyB(NewPolicyData); Assert.Equal(0, policy.GetBonusValue()); }
public void PolicyBWithDescretionaryBonusTest() { String myline = "B100003,1/01/1995,12000,Y,2000,41"; PolicyData NewPolicyData = new PolicyData(myline); Policy policy = new PolicyB(NewPolicyData); Assert.Equal(2000m, policy.GetBonusValue()); }