示例#1
0
        public void BatteryShoudThrowExceptionIfHourseTalkIsSetToNegativeValue()
        {
            Battery battery = new Battery("something", 1, 1);

            Assert.ThrowsException <ArgumentException>(() => battery.AddTalkTime(-1));
        }