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