public void お知らせを更新する() { var act = new Season( "2020年度", new DateTime(2020, 4, 1), new DateTime(2021, 3, 31), new DateTime(2020, 2, 1), new TeamRegistrationFee(5000), new PlayerRegistrationFee(500), new PlayerTradeFee(200) ); act.Change( new DateTime(2020, 9, 1), new DateTime(2021, 8, 31), new DateTime(2020, 7, 1), new TeamRegistrationFee(6000), new PlayerRegistrationFee(600), new PlayerTradeFee(300) ); Assert.Equal(new DateTime(2020, 9, 1), act.FromDate); Assert.Equal(new DateTime(2021, 8, 31), act.ToDate); Assert.Equal(new DateTime(2020, 7, 1), act.RegistrationFromDate); Assert.Equal(new TeamRegistrationFee(6000), act.TeamRegistrationFee); Assert.Equal(new PlayerRegistrationFee(600), act.PlayerRegistrationFee); Assert.Equal(new PlayerTradeFee(300), act.PlayerTradeFee); }