hope this fix your issue I think it is because you call PlaceControl from Form1.cs AND in the constructor of the NewControl class, Because you say newButton.Click += new EventHandler(Form1.RemoveButton);. You are adding EventHandlers, so there can be more of them.
How can I assert a method is called without executing the code within the method?
wish of those help You are mixing your concerns, business logic and data access, in one class. You need to think about Single Responsibility Principle and Separation of concerns. Your public void Condition(x,y) should probably be in a Business Logic Layer with methodOne() and methodTwo() being in a Data Access Layer.
Some code not executing in a method called from another ViewController
wish of those help You're creating a new instance of ViewController with that code, not getting a pointer to the one you already have. If ViewController is the controller that presented the modal view, then you can get a pointer to it with,
Does that help You mocked a repository in your method, but this mock repository is assigned to a local variable only. So the code calling repository.getVenue() calls it on a different repository instance, and not on the one created by Mockito:
Executing a method, when any other method in that class is called other then Aspect