607 reputation
16
bio website
location
age
visits member for 1 year, 1 month
seen 22 hours ago

1d
comment Testing C# Eventhandler Subscription
My mistake, I mixed it up. I meant Moq.
1d
awarded  Scholar
1d
accepted Testing C# Eventhandler Subscription
1d
comment Testing C# Eventhandler Subscription
Hm, this option is unfortunately absent from Ninject, as far as I can tell. Still, it does answer my question.
2d
comment Testing C# Eventhandler Subscription
I could of course implement a version of IA that uses sub counting or so and use this in the unit test for B, but that is far less elegant and much more code than simply calling mock.Verify...
2d
comment Testing C# Eventhandler Subscription
Class A has an event that can be subscribed to. Class B wants to subscribe and unsubscribe. In the IEventSource<> case, I can simply mock A in the unit test of class B, and verify that _a.Subscribe() was called with the correct param. Custom add/remove will only help me in the unit test for A, but not help me test that B subscribed to A in the test for B.
2d
comment Testing C# Eventhandler Subscription
This works only if I want to test the actual event source object. If I want to test in another context that something subscribes, I cannot mock the class containing, which means I would have to manually implement a counting event handler...
2d
revised Testing C# Eventhandler Subscription
added 22 characters in body
2d
revised Testing C# Eventhandler Subscription
edited title
2d
asked Testing C# Eventhandler Subscription
Feb
25
awarded  Yearling
Jan
17
comment How to do structured code reviews
TFS reviewing is unusable. We have a GitHub:Enterprise instance where all developers develop on, and do all reviews there, and simply mirror the main branch after every accepted pull request. Much better workflow.
Jan
9
comment What graph traversal algorithm should I use?
Duplicate of your own question here
Jan
7
comment Moving a multi-GB SVN repo to Git
@ikh it's quite simple and straight-forward to build nuget packages for external dependencies. I needed about half a day to package 9 dependencies with 50 dlls, having never done it before.
Jan
7
revised Moving a multi-GB SVN repo to Git
added 308 characters in body
Jan
7
comment Moving a multi-GB SVN repo to Git
Yes, I assumed of course that you use a local mirror. I will update the answer.
Jan
6
answered Moving a multi-GB SVN repo to Git
Jan
6
comment GitHub etiquette for duplicating a repo to change functionality
There is nothing that you gain from doing it the way you suggested, but you lose a lot of comfort.
Dec
20
comment Graph traversal and filtering in indoor navigation and path finding
Yes, but to get the best path, you obviously need to put a cost on each edge. The precomputed version will have wrong costs, because some of those costs will be part of the user's prefs, and not globally valid.
Dec
13
answered Graph traversal and filtering in indoor navigation and path finding