示例#1
0
 public void Should_parse_ONE_week()
 {
     Assert.That(MinuteParser.Parse("1 week"), Is.EqualTo(MinutesInDays(7)));
 }
示例#2
0
 public void Should_only_parse_minutes()
 {
     Assert.That(MinuteParser.Parse("10 minutes"), Is.EqualTo(10));
 }
示例#3
0
 public void Should_parse_ONE_day()
 {
     Assert.That(MinuteParser.Parse("1 day"), Is.EqualTo(MinutesInDays(1)));
 }
示例#4
0
 public void Should_parse_days_and_hours_and_minutes()
 {
     Assert.That(MinuteParser.Parse("2 days and 1 hour and 1 minutes"), Is.EqualTo(MinutesInDays(2) + 60 + 1));
 }
示例#5
0
 public void Should_only_parse_days()
 {
     Assert.That(MinuteParser.Parse("2 days"), Is.EqualTo(MinutesInDays(2)));
 }
示例#6
0
 public void Should_parse_days_even_no_space_between_number_and_unit()
 {
     Assert.That(MinuteParser.Parse("2days"), Is.EqualTo(MinutesInDays(2)));
 }
示例#7
0
 public void Should_parse_hours_and_minutes()
 {
     Assert.That(MinuteParser.Parse("2 hours and 2 minutes"), Is.EqualTo(122));
 }
示例#8
0
 public void Should_parse_ONE_hour()
 {
     Assert.That(MinuteParser.Parse("1 hour"), Is.EqualTo(60));
 }
示例#9
0
 public void Should_parse_hours_even_no_space_between_number_and_unit()
 {
     Assert.That(MinuteParser.Parse("2hours"), Is.EqualTo(120));
 }
示例#10
0
 public void Should_only_parse_hours()
 {
     Assert.That(MinuteParser.Parse("2 hours"), Is.EqualTo(120));
 }
示例#11
0
 public void Should_parse_ONE_minute()
 {
     Assert.That(MinuteParser.Parse("1 minute"), Is.EqualTo(1));
 }