Пример #1
0
 public virtual void TestDateNormalization()
 {
     NUnit.Framework.Assert.AreEqual(dateStrings.Length, dateAnswers.Length);
     for (int i = 0; i < dateStrings.Length; i++)
     {
         ISODateInstance d = new ISODateInstance(dateStrings[i]);
         NUnit.Framework.Assert.AreEqual("Testing " + dateStrings[i], dateAnswers[i], d.ToString());
     }
 }
Пример #2
0
 public virtual void TestIsCompatible()
 {
     for (int i = 0; i < staticCompatibleStrings1.Length; i++)
     {
         NUnit.Framework.Assert.AreEqual("Testing " + staticCompatibleStrings1[i] + " and " + staticCompatibleStrings2[i], staticCompatibleAnswers[i], ISODateInstance.IsCompatible(staticCompatibleStrings1[i], staticCompatibleStrings2[i]));
     }
 }