Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hmemcpy
Last active December 14, 2015 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmemcpy/5003775 to your computer and use it in GitHub Desktop.
Save hmemcpy/5003775 to your computer and use it in GitHub Desktop.
An external annotations file for FakeItEasy, so ReSharper won't complain about implicit captures on CallTo() lambdas. Place this file alongside FakeItEasy.dll and reload your solution.
<?xml version="1.0" encoding="utf-8"?>
<assembly name="FakeItEasy">
<member name="M:FakeItEasy.A.CallTo(System.Linq.Expressions.Expression{System.Action})">
<parameter name="callSpecification">
<attribute ctor="M:JetBrains.Annotations.InstantHandleAttribute.#ctor" />
</parameter>
</member>
<member name="M:FakeItEasy.A.CallTo``1(System.Linq.Expressions.Expression{System.Func{``0}})">
<parameter name="callSpecification">
<attribute ctor="M:JetBrains.Annotations.InstantHandleAttribute.#ctor" />
</parameter>
</member>
</assembly>
@citizenmatt
Copy link

You should also be able to ship it as FakeItEasy.ExternalAnnotations.xml side-by-side with FakeItEasy.dll (assuming that's the name of the dll, 'fraid I haven't used FakeItEasy)

@hmemcpy
Copy link
Author

hmemcpy commented Feb 21, 2013

Thanks, Matt, I amended the description (and the filename)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment