~a-schlapsi/nunit-3.0/linux-makefile

« back to all changes in this revision

Viewing changes to src/tests/Constraints/ComparisonConstraintTests.cs

  • Committer: Andreas Schlapsi
  • Date: 2010-10-05 22:15:56 UTC
  • mfrom: (18.1.227 work)
  • Revision ID: a.schlapsi@gmx.at-20101005221556-gi6plm10hid84qrf
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
using System;
25
25
using System.Collections;
26
 
#if CLR_2_0
 
26
#if CLR_2_0 || CLR_4_0
27
27
using System.Collections.Generic;
28
28
#endif
29
29
 
53
53
            }
54
54
        }
55
55
 
56
 
#if CLR_2_0
 
56
#if CLR_2_0 || CLR_4_0
57
57
        [Test]
58
58
        public void UsesProvidedComparerOfT()
59
59
        {
92
92
            }
93
93
        }
94
94
 
95
 
#if NET_3_5 || MONO_3_5 || NETCF_3_5 || NET_4_0
 
95
#if CS_3_0 || CS_4_0
96
96
        [Test]
97
97
        public void UsesProvidedLambda()
98
98
        {
130
130
            Assert.That(actual, Is.GreaterThan(expected));
131
131
        }
132
132
 
133
 
#if CLR_2_0
 
133
#if CLR_2_0 || CLR_4_0
134
134
        [Test]
135
135
        public void CanCompareIComparablesOfT()
136
136
        {
168
168
            Assert.That(actual, Is.GreaterThanOrEqualTo(expected));
169
169
        }
170
170
 
171
 
#if CLR_2_0
 
171
#if CLR_2_0 || CLR_4_0
172
172
        [Test]
173
173
        public void CanCompareIComparablesOfT()
174
174
        {
206
206
            Assert.That(actual, Is.LessThan(expected));
207
207
        }
208
208
 
209
 
#if CLR_2_0
 
209
#if CLR_2_0 || CLR_4_0
210
210
        [Test]
211
211
        public void CanCompareIComparablesOfT()
212
212
        {
244
244
            Assert.That(actual, Is.LessThanOrEqualTo(expected));
245
245
        }
246
246
 
247
 
#if CLR_2_0
 
247
#if CLR_2_0 || CLR_4_0
248
248
        [Test]
249
249
        public void CanCompareIComparablesOfT()
250
250
        {
295
295
            }
296
296
        }
297
297
 
298
 
#if CLR_2_0
 
298
#if CLR_2_0 || CLR_4_0
299
299
        [Test]
300
300
        public void UsesProvidedComparerOfT()
301
301
        {
334
334
            }
335
335
        }
336
336
 
337
 
#if NET_3_5 || MONO_3_5 || NETCF_3_5 || NET_4_0
 
337
#if CS_3_0 || CS_4_0
338
338
        [Test]
339
339
        public void UsesProvidedLambda()
340
340
        {
366
366
        }
367
367
    }
368
368
 
369
 
#if CLR_2_0
 
369
#if CLR_2_0 || CLR_4_0
370
370
    class ClassWithIComparableOfT : IComparable<ClassWithIComparableOfT>
371
371
    {
372
372
        private int val;