示例#1
0
 public void TestValidateDecreasing()
 {
     Assert.IsTrue(MovieMagic.ValidateDecreasing <int>(new List <IList <int> > {
         new List <int> {
             2, 4
         }, new List <int> {
             1
         }
     }));
     Assert.IsFalse(MovieMagic.ValidateDecreasing <int>(new List <IList <int> > {
         new List <int> {
             1
         }, new List <int> {
             2, 4
         }
     }));
 }
示例#2
0
 public void TestValidateWithinRange()
 {
     Assert.IsTrue(MovieMagic.ValidateWithinRange <int>(new List <IList <int> > {
         new List <int> {
             2, 4
         }, new List <int> {
             1
         }
     }, new List <int> {
         3, 2
     }));
     Assert.IsFalse(MovieMagic.ValidateWithinRange <int>(new List <IList <int> > {
         new List <int> {
             1, 2, 3
         }, new List <int> {
             2, 4
         }
     }, new List <int> {
         2, 1
     }));
 }