public void BuildAccountingPeriodObjectSeperateMonthYearConstructorTest2(int MonthToTest, int YearToTest, int ShouldBeAccountingPeriod) { //grab the result var Result = new AccountingPeriod(MonthToTest, YearToTest); //test the month and year Assert.Equal(MonthToTest, Result.Month); Assert.Equal(YearToTest, Result.Year); //make sure the ToAccountingPeriod Works Assert.Equal(Result.ToAccountingPeriod(), ShouldBeAccountingPeriod); }
public void BuildAccountingPeriodObjectIntConstructorTest1(int AccountingPeriodToTest, int ShouldBeMonth, int ShouldBeYear) { //go run the method and get the results var Result = new AccountingPeriod(AccountingPeriodToTest); //test the month and year Assert.Equal(ShouldBeMonth, Result.Month); Assert.Equal(ShouldBeYear, Result.Year); //make sure the ToAccountingPeriod Works Assert.Equal(Result.ToAccountingPeriod(), AccountingPeriodToTest); }