Skip to content

Instantly share code, notes, and snippets.

@james-dibble
Created June 26, 2014 17:50
Show Gist options
  • Save james-dibble/0a7836064f8b3ae9de3e to your computer and use it in GitHub Desktop.
Save james-dibble/0a7836064f8b3ae9de3e to your computer and use it in GitHub Desktop.
[TestMethod]
public async Task TestGenericOperation
{
var fakeThing = new StubIThingWithGeneric();
fakeThing.GenericOperationAsyncOf1(() => new SomeOtherThing();
var target = new TestTarget(fakeThing);
var actual = await target.DoSomething();
Assert.IsNotNull(actual);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment