public void Should_parse_ONE_week() { Assert.That(MinuteParser.Parse("1 week"), Is.EqualTo(MinutesInDays(7))); }
public void Should_only_parse_minutes() { Assert.That(MinuteParser.Parse("10 minutes"), Is.EqualTo(10)); }
public void Should_parse_ONE_day() { Assert.That(MinuteParser.Parse("1 day"), Is.EqualTo(MinutesInDays(1))); }
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)); }
public void Should_only_parse_days() { Assert.That(MinuteParser.Parse("2 days"), Is.EqualTo(MinutesInDays(2))); }
public void Should_parse_days_even_no_space_between_number_and_unit() { Assert.That(MinuteParser.Parse("2days"), Is.EqualTo(MinutesInDays(2))); }
public void Should_parse_hours_and_minutes() { Assert.That(MinuteParser.Parse("2 hours and 2 minutes"), Is.EqualTo(122)); }
public void Should_parse_ONE_hour() { Assert.That(MinuteParser.Parse("1 hour"), Is.EqualTo(60)); }
public void Should_parse_hours_even_no_space_between_number_and_unit() { Assert.That(MinuteParser.Parse("2hours"), Is.EqualTo(120)); }
public void Should_only_parse_hours() { Assert.That(MinuteParser.Parse("2 hours"), Is.EqualTo(120)); }
public void Should_parse_ONE_minute() { Assert.That(MinuteParser.Parse("1 minute"), Is.EqualTo(1)); }