Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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>

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)

Owner

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