~charlie.poole/nunitv2/equality-handlers

« back to all changes in this revision

Viewing changes to src/NUnitFramework/framework/Assert.cs

  • Committer: Charlie Poole
  • Date: 2011-03-29 21:54:46 UTC
  • mfrom: (3257.4.15 standalone-editor)
  • Revision ID: charlie@nunit.org-20110329215446-pu1r6okg4www4zat
Remove integrated project editor and substitute new standalone editor

Show diffs side-by-side

added added

removed removed

Lines of Context:
369
369
        #endregion
370
370
 
371
371
        #region ref Object
372
 
#if NET_2_0
 
372
#if CLR_2_0
373
373
        /// <summary>
374
374
        /// Apply a constraint to a referenced value, succeeding if the constraint
375
375
        /// is satisfied and throwing an assertion exception on failure.
592
592
        #endregion
593
593
 
594
594
        #region Throws<T>
595
 
#if NET_2_0
 
595
#if CLR_2_0
596
596
        /// <summary>
597
597
        /// Verifies that a delegate throws a particular exception when called.
598
598
        /// </summary>
700
700
        #endregion
701
701
 
702
702
        #region Catch<T>
703
 
#if NET_2_0
 
703
#if CLR_2_0
704
704
        /// <summary>
705
705
        /// Verifies that a delegate throws an exception of a certain Type
706
706
        /// or one derived from it when called and returns it.
1114
1114
            Assert.That(aDouble, Is.NaN ,null, null);
1115
1115
        }
1116
1116
        
1117
 
#if NET_2_0
 
1117
#if CLR_2_0
1118
1118
        /// <summary>
1119
1119
        /// Verifies that the double that is passed in is an <code>NaN</code> value.
1120
1120
        /// If the object is not <code>NaN</code> then an <see cref="AssertionException"/>
1397
1397
        
1398
1398
        #region IsAssignableFrom<T>
1399
1399
        
1400
 
#if NET_2_0
 
1400
#if CLR_2_0
1401
1401
        /// <summary>
1402
1402
        /// Asserts that an object may be assigned a  value of a given Type.
1403
1403
        /// </summary>
1473
1473
        
1474
1474
        #region IsNotAssignableFrom<T>
1475
1475
        
1476
 
#if NET_2_0
 
1476
#if CLR_2_0
1477
1477
        /// <summary>
1478
1478
        /// Asserts that an object may not be assigned a  value of a given Type.
1479
1479
        /// </summary>
1585
1585
        
1586
1586
        #region IsInstanceOf<T>
1587
1587
        
1588
 
#if NET_2_0
 
1588
#if CLR_2_0
1589
1589
        /// <summary>
1590
1590
        /// Asserts that an object is an instance of a given type.
1591
1591
        /// </summary>
1697
1697
        
1698
1698
        #region IsNotInstanceOf<T>
1699
1699
        
1700
 
#if NET_2_0
 
1700
#if CLR_2_0
1701
1701
        /// <summary>
1702
1702
        /// Asserts that an object is not an instance of a given type.
1703
1703
        /// </summary>
1974
1974
            AssertDoublesAreEqual(expected, actual, delta ,null, null);
1975
1975
        }
1976
1976
        
1977
 
#if NET_2_0
 
1977
#if CLR_2_0
1978
1978
        /// <summary>
1979
1979
        /// Verifies that two doubles are equal considering a delta. If the
1980
1980
        /// expected value is infinity then the delta value is ignored. If