Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid NullReferenceException with async methods #66

Merged
merged 2 commits into from
Dec 13, 2013

Commits on Dec 13, 2013

  1. Avoid NullReferenceException with async methods

    When using async methods and loose Mock Behavior, calls to Task methods
    give NullReferenceException, since default(Task) is null. Calls to
    Task.Wait() and Task<T>.Result should follow the loose behavior: do
    nothing and return the default value for T, respectively.
    
    Related to devlooped#64.
    Alex Tercete committed Dec 13, 2013
    2 Configuration menu
    Copy the full SHA
    7bf05bd View commit details
    Browse the repository at this point in the history
  2. Make code .NET 3.5 compatible

    Use compile directives to ensure smooth NuGet package generation.
    
    'IReturnsExtensions' was using 'System.Threading.Tasks' namespace, so
    compile directives were also added to it.
    Alex Tercete committed Dec 13, 2013
    Configuration menu
    Copy the full SHA
    ad78301 View commit details
    Browse the repository at this point in the history