Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. [Fact]
  2. public void Should_Test_Something()
  3. {
  4. using (var mock = AutoMock.GetLoose())
  5. {
  6. using (var workflow = mock.Create<IWorkflow>())
  7. {
  8. workflow.DoSomething();
  9. }
  10. }
  11. }
  12.  
  13. public interface IWorkflow
  14. {
  15. void DoSomething();
  16. }
  17.  
  18. public class Workflow : IWorkflow
  19. {
  20. // ...
  21. public void DoSomething()
  22. {
  23. // I do something, a breakpoint set here does never get hit
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement