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
3 changed files with 6 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue