public void DurationInMinutes_UnitMinutes_Test() { Duration duration = new Duration(30, new Minute()); Talk talk = new Talk(string.Empty, duration); int expected = 30; Assert.AreEqual(expected, talk.DurationInMinutes()); }
public void DurationInMinutes_TimeUnitLightning_Test() { Duration duration = new Duration(new Lightning()); Talk talk = new Talk(string.Empty, duration); int expected = AppSettings.LightningSessionDuration; Assert.AreEqual(expected, talk.DurationInMinutes()); }