コード例 #1
0
        public void CalculateWhenEmployee()
        {
            var calculator = new InitialCostCalculator();
            var employee = new Employee {
                InitialCostOfBenefits = 2323
            };

            var actual = calculator.Calculate(employee);

            Assert.AreEqual(employee.InitialCostOfBenefits, actual);
        }
コード例 #2
0
        public void CalculateWhenDependent()
        {
            var calculator = new InitialCostCalculator();
            var dependent = new Dependent {
                InitialCostOfBenefits = 2323
            };

            var actual = calculator.Calculate(dependent);

            Assert.AreEqual(dependent.InitialCostOfBenefits, actual);
        }