예제 #1
0
 public void HoursAgo(int hours, string expected)
 {
     DateHumanize.Verify(expected, hours, TimeUnit.Hour, Tense.Past);
 }
예제 #2
0
 public void HoursFromNow(int hours, string expected)
 {
     DateHumanize.Verify(expected, hours, TimeUnit.Hour, Tense.Future);
 }
예제 #3
0
 public void RomanianTranslationIsCorrectForThreeHoursAgo()
 {
     DateHumanize.Verify("acum 3 ore", 3, TimeUnit.Hour, Tense.Past);
 }
예제 #4
0
 public void DaysFromNow(int days, string expected)
 {
     DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Future);
 }
예제 #5
0
 public void SecondsFromNow(int seconds, string expected)
 {
     DateHumanize.Verify(expected, seconds, TimeUnit.Second, Tense.Future);
 }
예제 #6
0
 public void YearsFromNow(int years, string expected)
 {
     DateHumanize.Verify(expected, years, TimeUnit.Year, Tense.Future);
 }
예제 #7
0
 public void RomanianTranslationIsCorrectFor10DaysAgo()
 {
     DateHumanize.Verify("acum 10 zile", 10, TimeUnit.Day, Tense.Past);
 }
예제 #8
0
 public void MinutesFromNow(int minutes, string expected)
 {
     DateHumanize.Verify(expected, minutes, TimeUnit.Minute, Tense.Future);
 }
예제 #9
0
 public void RomanianTranslationIsCorrectFor44MinutesAgo()
 {
     DateHumanize.Verify("acum 44 de minute", 44, TimeUnit.Minute, Tense.Past);
 }
예제 #10
0
 public void RomanianTranslationIsCorrectFor59SecondsAgo()
 {
     DateHumanize.Verify("acum 59 de secunde", 59, TimeUnit.Second, Tense.Past);
 }
예제 #11
0
 public void RomanianTranslationIsCorrectFor60MinutesAgo()
 {
     DateHumanize.Verify("acum o oră", 60, TimeUnit.Minute, Tense.Past);
 }
예제 #12
0
 public void RomanianTranslationIsCorrectFor19MinutesAgo()
 {
     DateHumanize.Verify("acum 19 minute", 19, TimeUnit.Minute, Tense.Past);
 }
예제 #13
0
 public void RomanianTranslationIsCorrectFor20HoursAgo()
 {
     DateHumanize.Verify("acum 20 de ore", 20, TimeUnit.Hour, Tense.Past);
 }
예제 #14
0
 public void MonthsFromNow(int months, string expected)
 {
     DateHumanize.Verify(expected, months, TimeUnit.Month, Tense.Future);
 }
예제 #15
0
 public void RomanianTranslationIsCorrectFor23DaysAgo()
 {
     DateHumanize.Verify("acum 23 de zile", 23, TimeUnit.Day, Tense.Past);
 }
예제 #16
0
 public void MinutesAgo(int minutes, string expected)
 {
     DateHumanize.Verify(expected, minutes, TimeUnit.Minute, Tense.Past);
 }
예제 #17
0
 public void RomanianTranslationIsCorrectFor100YearsAgo()
 {
     DateHumanize.Verify("acum 100 de ani", 100, TimeUnit.Year, Tense.Past);
 }
예제 #18
0
 public void SecondsAgo(int seconds, string expected)
 {
     DateHumanize.Verify(expected, seconds, TimeUnit.Second, Tense.Past);
 }
예제 #19
0
 public void Now()
 {
     DateHumanize.Verify("sada", 0, TimeUnit.Year, Tense.Future);
 }
예제 #20
0
 public void YearsAgo(int years, string expected)
 {
     DateHumanize.Verify(expected, years, TimeUnit.Year, Tense.Past);
 }
예제 #21
0
 public void DaysAgo(int days, string expected)
 {
     DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Past);
 }
예제 #22
0
 public void MonthsAgo(int months, string expected)
 {
     DateHumanize.Verify(expected, months, TimeUnit.Month, Tense.Past);
 }
예제 #23
0
 public void Now()
 {
     DateHumanize.Verify("зараз", 0, TimeUnit.Day, Tense.Past);
 }