Giter Club home page Giter Club logo

Comments (5)

kzu avatar kzu commented on July 29, 2024

What's missing from the merged PR #60 to satisfy this?

from moq4.

jdom avatar jdom commented on July 29, 2024

I didn't know about those extensions. Those definitely help, although I guess they might be in the wrong namespace, as being extension methods they are not that easily discoverable because we typically do not add a using for Moq.Language.Flow (or is this where all extensions are defined?)

Do you think we should move them to just Moq namespace or will they pollute the main namespace unnecessarily?

Also, ideally, all methods that return Task or Task< T> should by default return a completed Task with the default value, instead of a null Task. With this last thing I believe Moq could be of great value also with async code.

from moq4.

kzu avatar kzu commented on July 29, 2024

Good point. Yes, the extension methods should be under Moq namespace.

+1 on the default value for Task. That should be an easy fix :)

/kzu

Daniel Cazzulino

On Tue, Dec 10, 2013 at 12:32 PM, jdom [email protected] wrote:

I didn't know about those extensions. Those definitely help, although I
guess they might be in the wrong namespace, as being extension methods they
are not that easily discoverable because we typically do not add a using
for Moq.Language.Flow (or is this where all extensions are defined?)

Do you think we should move them to just Moq namespace or will they
pollute the main namespace unnecessarily?

Also, ideally, all methods that return Task or Task should by default
return a completed Task with the default value, instead of a null Task.
With this last thing I believe Moq could be of great value also with async
code.


Reply to this email directly or view it on GitHubhttps://github.com//issues/64#issuecomment-30236958
.

from moq4.

jdom avatar jdom commented on July 29, 2024

Nice!

from moq4.

stakx avatar stakx commented on July 29, 2024

Closing this issue since all that it asked for has been implemented since.

from moq4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.