Adminkzu (Admin, moq)

My feedback

  1. 1 vote
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      1 comment  ·  General  ·  Admin →
      Adminkzu (Admin, moq) commented  · 

      Fixed :)

    • 1 vote
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        1 comment  ·  General  ·  Admin →
        Adminkzu (Admin, moq) commented  · 

        I think lambdas will only come to C++ in vNext.
        See http://twitter.com/#!/donbox/status/101072231563661312

      • 4 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          3 comments  ·  General  ·  Admin →
          Adminkzu (Admin, moq) commented  · 

          Yup, sorry. You'referring of course to the 'ocassionally useful suggestion of demeter': http://mobile.twitter.com/martinfowler/status/1649793241

          not worried at all

          Adminkzu (Admin, moq) commented  · 

          are you talking about LSP? (http://en.wikipedia.org/wiki/Liskov_substitution_principle)

          If that's the case, it's only partially useful and only on specific scenarios.

          i.e. try to mock HttpContextBase :P

        • 3 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            1 comment  ·  General  ·  Admin →
            Adminkzu (Admin, moq) commented  · 

            Version? This has been fixed quite a long time ago IIRC...

          • 2 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              4 comments  ·  General  ·  Admin →

              It also returns empty for enumerables and iqueryables.
              if you set the default value to DefaultValue.Mock, you’d get an empty list too. Have you tried that?

              Adminkzu (Admin, moq) commented  · 

              Ok, so basically you want us to add List<T> and maybe Collection<T> too to return empty collections rather than null?

              Adminkzu (Admin, moq) commented  · 

              I assume you know how to change the DefaultValue property on mocks (which would make returning empty lists and mock objects very easy).

              Would it be enough if the interface (and corresponding Mock<T> property) were exposed but undocumented and hidden from intellisense? (I think they complicate the API for the majority of users)

            Feedback and Knowledge Base