Increased test coverage for all collection classes up to the priority queue to 100%; SetParent() is no longer 'protected internal' as internal is sufficient in this case (.NET 'protected internal' is less restrictive than 'protected' or 'internal' alone); parenting collection now unsets parent for items that are being replaced; priority queue version check for enumerators (to protected against modification of the collection) now only happens in debug mode

git-svn-id: file:///srv/devel/repo-conversion/nusu@94 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2008-11-27 18:56:08 +00:00
parent cb0355193d
commit c43bfd47c8
11 changed files with 663 additions and 18 deletions

View file

@ -42,7 +42,7 @@ namespace Nuclex.Support.Collections {
protected virtual void OnParentChanged(ParentType oldParent) { }
/// <summary>Assigns a new parent to this instance</summary>
protected internal void SetParent(ParentType parent) {
internal void SetParent(ParentType parent) {
ParentType oldParent = this.parent;
this.parent = parent;