|
From: Jim A. <JA...@th...> - 2004-06-15 12:51:22
|
Nice one, although one of the tests is bogus :-)
DynamicMockTest.VerifyThatFinalizeIsNotOverriddenInMockSubClass fails
intermittently because GC.Collect does not guarantee that Finalize() will
be called (and it runs on a different thread so is unlikely to finish
before the assertion executes). A more correct test would be:
[Test] public void VerifyThatFinalizeIsNotOverriddenInMockSubClass()
{
DisposableThingy thingy = CreateDisposableThingyMock();
MethodInfo finalizer =
thingy.GetType().GetMethod("Finalize", BindingFlags.DeclaredOnly |
BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
AssertNull(finalizer);
}
(Which means you can lose the static DestructorCallCount field).
Jim
|---------+----------------------------------------->
| | Owen Rogers |
| | <OR...@th...> |
| | Sent by: |
| | nmo...@li...|
| | ceforge.net |
| | |
| | |
| | 14/06/2004 17:48 |
| | |
|---------+----------------------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
| |
| To: nmo...@li... |
| cc: |
| Subject: [Nmock-general] nmock 1.1 is now released |
>------------------------------------------------------------------------------------------------------------------------------|
nmock 1.1 is (finally) released and available for download from
sourceforge:
-
https://sourceforge.net/project/showfiles.php?group_id=66591&package_id=64549
this release is produced using automated build 11 from ccnetlive:
- http://ccnetlive.thoughtworks.com/NMock-builds/
the release contains numerous incremental bug fixes from the 1.0 release.
if you are experiencing any problems with the download from sourceforge, it
may be due to sourceforge's mirroring process. if so, you can always
retrieve the files from ccnetlive.
cheers,
owen.
---
R. Owen Rogers
ThoughtWorks Technologies (India) Pvt Ltd.
ThoughtWorks - Deliver with passion!
ThoughtWorks is always looking for talented people who are passionate about
technology. To find out more about a career at ThoughtWorks go to
http://www.thoughtworks.com/career/.
|