コード例 #1
0
ファイル: EqualToTests.cs プロジェクト: jayrgee/foolproof
 public EqualToTests()
 {
     EqualToStringsValid = new EqualToStrings()
     {
         Value1 = "hello", Value2 = "hello"
     };
     EqualToStringsNotValid = new EqualToStrings()
     {
         Value1 = "hello", Value2 = "goodbye"
     };
 }
コード例 #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};
        }
コード例 #3
0
ファイル: IsTests.cs プロジェクト: kanpinar/unity3.1th
 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};
 }
コード例 #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};
        }
コード例 #5
0
ファイル: IsTests.cs プロジェクト: aliasmyers/foolproof
 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
     };
 }
コード例 #6
0
ファイル: EqualToTests.cs プロジェクト: kanpinar/unity3.1th
 public EqualToTests()
 {
     EqualToStringsValid = new EqualToStrings() { Value1 = "hello", Value2 = "hello" };
     EqualToStringsNotValid = new EqualToStrings() { Value1 = "hello", Value2 = "goodbye" };
 }