Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Fact]
- public void Should_Test_Something()
- {
- using (var mock = AutoMock.GetLoose())
- {
- using (var workflow = mock.Create<IWorkflow>())
- {
- workflow.DoSomething();
- }
- }
- }
- public interface IWorkflow
- {
- void DoSomething();
- }
- public class Workflow : IWorkflow
- {
- // ...
- public void DoSomething()
- {
- // I do something, a breakpoint set here does never get hit
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement