I'm using the Paid version but can't seem to mock an extension method -- I've tried the following
Mock.Arrange(() => target.SomeExtensionMethod(1)).DoNothing();
where target is a concrete (non-mocked) object as well as just
Mock.Arrange(() => StaticClass.AddLinkableObject(1)).DoNothing();
Where StaticClass is the class where the extension method is defined.
As soon as my code hits the Arrange line I get the following exception-
Profiler must be enabled to mock/assert target blah, blah method.
Thanks
Mock.Arrange(() => target.SomeExtensionMethod(1)).DoNothing();
where target is a concrete (non-mocked) object as well as just
Mock.Arrange(() => StaticClass.AddLinkableObject(1)).DoNothing();
Where StaticClass is the class where the extension method is defined.
As soon as my code hits the Arrange line I get the following exception-
Profiler must be enabled to mock/assert target blah, blah method.
Thanks