We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In ArrayListTest events are not properly tested. The method listen() only adds event handlers to the Added event, thereby ignoring all other events:
ArrayListTest
listen()
Added
private void listen() { seen.Listen(list, EventTypeEnum.Added); }
This is correctly done in the HashedArrayListTest class:
HashedArrayListTest
private void listen() { seen.Listen(list, EventTypeEnum.All); }
Be aware that fixing the listen() method will cause the Listenable() test to fail. It can, however, easily be fixed by inlining the method:
Listenable()
[Test] public void Listenable() { Assert.AreEqual(EventTypeEnum.All, list.ListenableEvents); Assert.AreEqual(EventTypeEnum.None, list.ActiveEvents); seen.Listen(list, EventTypeEnum.Added); // <-- Bug fix Assert.AreEqual(EventTypeEnum.Added, list.ActiveEvents); }
The text was updated successfully, but these errors were encountered:
Again. Pull requests are accepted :)
Sorry, something went wrong.
No branches or pull requests
In
ArrayListTest
events are not properly tested. The methodlisten()
only adds event handlers to theAdded
event, thereby ignoring all other events:This is correctly done in the
HashedArrayListTest
class:Be aware that fixing the
listen()
method will cause theListenable()
test to fail. It can, however, easily be fixed by inlining the method:The text was updated successfully, but these errors were encountered: