Exemplo n.º 1
0
 public EqualToTests()
 {
     EqualToStringsValid = new EqualToStrings()
     {
         Value1 = "hello", Value2 = "hello"
     };
     EqualToStringsNotValid = new EqualToStrings()
     {
         Value1 = "hello", Value2 = "goodbye"
     };
 }
Exemplo n.º 2
0
        //public EqualToStrings EqualToStringsInvalid { get; set; }
        //public NotEqualToStrings NotEqualToStringsValid { get; set; }
        //public NotEqualToStrings NotEqualToStringsInvalid { get; set; }
        //public GreaterThanDates GreaterThanDatesValid { get; set; }
        //public GreaterThanDates GreaterThanDatesInvalid { get; set; }
        //public GreaterThanDecimal GreaterThanDecimalValid { get; set; }
        //public GreaterThanInt GreaterThanIntValid { get; set; }
        //public LessThanInt LessThanIntValid { get; set; }

        public IsWithPassOnNull()
        {
            EqualToStringsValid = new EqualToStrings() { Value1 = null, Value2 = "hello" };
            //EqualToStringsInvalid = new EqualToStrings() { Value1 = "hello", Value2 = "goodbye" };
            //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};
        }
Exemplo n.º 3
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};
 }
Exemplo n.º 4
0
        //public EqualToStrings EqualToStringsInvalid { get; set; }
        //public NotEqualToStrings NotEqualToStringsValid { get; set; }
        //public NotEqualToStrings NotEqualToStringsInvalid { get; set; }
        //public GreaterThanDates GreaterThanDatesValid { get; set; }
        //public GreaterThanDates GreaterThanDatesInvalid { get; set; }
        //public GreaterThanDecimal GreaterThanDecimalValid { get; set; }
        //public GreaterThanInt GreaterThanIntValid { get; set; }
        //public LessThanInt LessThanIntValid { get; set; }

        public IsWithPassOnNull()
        {
            EqualToStringsValid = new EqualToStrings()
            {
                Value1 = null, Value2 = "hello"
            };
            //EqualToStringsInvalid = new EqualToStrings() { Value1 = "hello", Value2 = "goodbye" };
            //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};
        }
Exemplo n.º 5
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
     };
 }
Exemplo n.º 6
0
 public EqualToTests()
 {
     EqualToStringsValid = new EqualToStrings() { Value1 = "hello", Value2 = "hello" };
     EqualToStringsNotValid = new EqualToStrings() { Value1 = "hello", Value2 = "goodbye" };
 }