Esempio n. 1
0
 public IsTests()
 {
     EqualToStringsValid = new EqualToStrings()
     {
         Value1 = "hello", Value2 = "hello"
     };
     EqualToStringsInvalid = new EqualToStrings()
     {
         Value1 = "hello", Value2 = "goodbye"
     };
     EqualToStringsComplexValid = new EqualToStringsComplex()
     {
         Value1 = new EqualToStringsComplex.SubModel()
         {
             Value = "hello"
         }, Value2 = "hello"
     };
     NotEqualToStringsValid = new NotEqualToStrings()
     {
         Value1 = "hello", Value2 = "goodbye"
     };
     NotEqualToStringsInvalid = new NotEqualToStrings()
     {
         Value1 = "hello", Value2 = "hello"
     };
     GreaterThanDatesValid = new GreaterThanDates()
     {
         Value1 = DateTime.Now.AddDays(-1), Value2 = DateTime.Now
     };
     GreaterThanDatesInvalid = new GreaterThanDates()
     {
         Value1 = DateTime.Now.AddDays(1), Value2 = DateTime.Now
     };
     GreaterThanDecimalValid = new GreaterThanDecimal()
     {
         Value1 = 5, Value2 = 10
     };
     GreaterThanIntValid = new GreaterThanInt()
     {
         Value1 = 5, Value2 = 10
     };
     LessThanIntValid = new LessThanInt()
     {
         Value1 = 10, Value2 = 5
     };
 }
Esempio n. 2
0
 public IsTests()
 {
     EqualToStringsValid = new EqualToStrings() { Value1 = "hello", Value2 = "hello" };
     EqualToStringsInvalid = new EqualToStrings() { Value1 = "hello", Value2 = "goodbye" };
     EqualToStringsComplexValid = new EqualToStringsComplex() { Value1 = new EqualToStringsComplex.SubModel() { Value = "hello"}, Value2 = "hello"};
     NotEqualToStringsValid = new NotEqualToStrings() { Value1 = "hello", Value2 = "goodbye" };
     NotEqualToStringsInvalid = new NotEqualToStrings() { Value1 = "hello", Value2 = "hello" };
     GreaterThanDatesValid = new GreaterThanDates() { Value1 = DateTime.Now.AddDays(-1), Value2 = DateTime.Now };
     GreaterThanDatesInvalid = new GreaterThanDates() { Value1 = DateTime.Now.AddDays(1), Value2 = DateTime.Now };
     GreaterThanDecimalValid = new GreaterThanDecimal() {Value1 = 5, Value2 = 10};
     GreaterThanIntValid = new GreaterThanInt() {Value1 = 5, Value2 = 10};
     LessThanIntValid = new LessThanInt() {Value1 = 10, Value2 = 5};
 }