Exemplo n.º 1
0
 public void SecondsAgo(int seconds, string expected)
 {
     DateHumanize.Verify(expected, seconds, TimeUnit.Second, Tense.Past);
 }
Exemplo n.º 2
0
 public void CanSpecifyCultureExplicitly(int unit, TimeUnit timeUnit, Tense tense, string culture, string expected)
 {
     DateHumanize.Verify(expected, unit, timeUnit, tense, culture: new CultureInfo(culture));
 }
Exemplo n.º 3
0
 public void YearsFromNow(int years, string expected)
 {
     DateHumanize.Verify(expected, years, TimeUnit.Year, Tense.Future);
 }
Exemplo n.º 4
0
 public void Now()
 {
     DateHumanize.Verify("now", 0, TimeUnit.Year, Tense.Future);
 }
Exemplo n.º 5
0
 public void HoursFromNow(int hours, string expected)
 {
     DateHumanize.Verify(expected, hours, TimeUnit.Hour, Tense.Future);
 }
 public void DaysAgo(int days, string expected)
 {
     DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Past, DefaultPrecision, dateTimeExpressionProvider: _timeExpressionProvider);
 }
Exemplo n.º 7
0
 public void DaysFromNow(int days, string expected)
 {
     DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Future);
 }
Exemplo n.º 8
0
 public void MinutesFromNow(int minutes, string expected)
 {
     DateHumanize.Verify(expected, minutes, TimeUnit.Minute, Tense.Future);
 }
 public void SecondsFromNow(int seconds, string expected)
 {
     DateHumanize.Verify(expected, seconds, TimeUnit.Second, Tense.Future, DefaultPrecision, dateTimeExpressionProvider: _timeExpressionProvider);
 }
 public void MinutesFromNow(int minutes, string expected)
 {
     DateHumanize.Verify(expected, minutes, TimeUnit.Minute, Tense.Future, DefaultPrecision, dateTimeExpressionProvider: _timeExpressionProvider);
 }
 public void YearsFromNow(int years, string expected)
 {
     DateHumanize.Verify(expected, years, TimeUnit.Year, Tense.Future, DefaultPrecision, dateTimeExpressionProvider: _timeExpressionProvider);
 }
 public void MillisecondsAgo(int milliseconds, string expected)
 {
     DateHumanize.Verify(expected, milliseconds, TimeUnit.Millisecond, Tense.Past, DefaultPrecision, dateTimeExpressionProvider: _timeExpressionProvider);
 }
 public void MonthsAgo(int months, string expected)
 {
     DateHumanize.Verify(expected, months, TimeUnit.Month, Tense.Past, DefaultPrecision, dateTimeExpressionProvider: _timeExpressionProvider);
 }
Exemplo n.º 14
0
 public void SecondsFromNow(int seconds, string expected)
 {
     DateHumanize.Verify(expected, seconds, TimeUnit.Second, Tense.Future);
 }
Exemplo n.º 15
0
 public void MonthsAgo(int months, string expected)
 {
     DateHumanize.Verify(expected, months, TimeUnit.Month, Tense.Past);
 }
Exemplo n.º 16
0
 public void MinutesAgo(int minutes, string expected)
 {
     DateHumanize.Verify(expected, minutes, TimeUnit.Minute, Tense.Past);
 }
Exemplo n.º 17
0
 public void MonthsFromNow(int months, string expected)
 {
     DateHumanize.Verify(expected, months, TimeUnit.Month, Tense.Future);
 }
Exemplo n.º 18
0
 public void HoursAgo(int hours, string expected)
 {
     DateHumanize.Verify(expected, hours, TimeUnit.Hour, Tense.Past);
 }
Exemplo n.º 19
0
 public void YearsAgo(int years, string expected)
 {
     DateHumanize.Verify(expected, years, TimeUnit.Year, Tense.Past);
 }
Exemplo n.º 20
0
 public void DaysAgo(int days, string expected)
 {
     DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Past);
 }
 public void HoursAgo(int hours, string expected)
 {
     DateHumanize.Verify(expected, hours, TimeUnit.Hour, Tense.Past, DefaultPrecision, dateTimeExpressionProvider: _timeExpressionProvider);
 }