public AddMonthlyPackage ( |
||
monthlyPackage | ||
Résultat | void |
public void AddMonthlyPackageMethod_DuplicateInput_ThrowsException() { var sut = new Gym(); var monthlyPackage1 = new MonthlyPackage {Id = 1535235}; sut.AddMonthlyPackage(monthlyPackage1); sut.AddMonthlyPackage(monthlyPackage1); }
public void AddMonthlyPackageMethod_MonthlyPackageInput_IncrementsMonthlyPackagesCount() { var sut = new Gym(); Assert.AreEqual(0, sut.MonthlyPackages.Count()); sut.AddMonthlyPackage(new MonthlyPackage()); Assert.AreEqual(1, sut.MonthlyPackages.Count()); }