The Shared helper is now obsolete (singletons are just too bad, not even suitable as workaround for static methods in interfaces for generic types; some cosmetic changes; made the ThreadRunner public
git-svn-id: file:///srv/devel/repo-conversion/nusu@333 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
2f82a2fdf9
commit
97183d2335
7 changed files with 24 additions and 19 deletions
|
|
@ -47,8 +47,10 @@ namespace Nuclex.Support {
|
|||
/// </summary>
|
||||
[Test]
|
||||
public void TestSameInstance() {
|
||||
#pragma warning disable 0618
|
||||
Dummy dummyInstance = Shared<Dummy>.Instance;
|
||||
Dummy otherDummyInstance = Shared<Dummy>.Instance;
|
||||
#pragma warning restore 0618
|
||||
|
||||
// Make sure they're the same instance. We could have put an instance counter in
|
||||
// the dummy class, but this might or might not work well across multiple tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue