AssertHelperTest.TestAlmostEqualWithDoubles() was testing the same code twice - fixed; made use of Assert.AreSame() instead of manually calling object.ReferenceEquals() in the SharedTest class; fixed documentation referring to the custom WeakReference as the System.WeakReference class
git-svn-id: file:///srv/devel/repo-conversion/nusu@112 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
6eb49ed0d2
commit
8f6616f79a
|
@ -64,7 +64,7 @@ namespace Nuclex.Support {
|
|||
[Test]
|
||||
public void TestAlmostEqualWithDoubles() {
|
||||
AssertHelper.AreAlmostEqual(exactDouble, minusOneDouble, 1);
|
||||
AssertHelper.AreAlmostEqual(exactDouble, minusOneDouble, 1);
|
||||
AssertHelper.AreAlmostEqual(exactDouble, plusOneDouble, 1);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -58,9 +58,7 @@ namespace Nuclex.Support {
|
|||
//
|
||||
// Maybe this really is a defect in Shared<> and the class should be equipped with
|
||||
// a method such as Discard() or Dispose() to get rid of the instance?
|
||||
Assert.IsTrue(
|
||||
ReferenceEquals(dummyInstance, otherDummyInstance)
|
||||
);
|
||||
Assert.AreSame(dummyInstance, otherDummyInstance);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace Nuclex.Support {
|
|||
where ReferencedType : class {
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the System.WeakReference class, referencing
|
||||
/// Initializes a new instance of the WeakReference class, referencing
|
||||
/// the specified object.
|
||||
/// </summary>
|
||||
/// <param name="target">The object to track or null.</param>
|
||||
|
@ -41,7 +41,7 @@ namespace Nuclex.Support {
|
|||
: base(target) { }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the System.WeakReference class, referencing
|
||||
/// Initializes a new instance of the WeakReference class, referencing
|
||||
/// the specified object optionally using resurrection tracking.
|
||||
/// </summary>
|
||||
/// <param name="target">An object to track.</param>
|
||||
|
@ -53,7 +53,7 @@ namespace Nuclex.Support {
|
|||
: base(target, trackResurrection) { }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the System.WeakReference class, using deserialized
|
||||
/// Initializes a new instance of the WeakReference class, using deserialized
|
||||
/// data from the specified serialization and stream objects.
|
||||
/// </summary>
|
||||
/// <param name="info">
|
||||
|
@ -71,7 +71,7 @@ namespace Nuclex.Support {
|
|||
: base(info, context) { }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the object (the target) referenced by the current System.WeakReference
|
||||
/// Gets or sets the object (the target) referenced by the current WeakReference
|
||||
/// object.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
|
|
Loading…
Reference in New Issue
Block a user