Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Moq v5 #1

Open
23 of 29 tasks
kzu opened this issue Apr 18, 2017 · 6 comments
Open
23 of 29 tasks

Moq v5 #1

kzu opened this issue Apr 18, 2017 · 6 comments

Comments

@kzu
Copy link
Member

kzu commented Apr 18, 2017

Pendings:

  • Interface proxies
  • Abstract class proxies
  • Allow customizing the proxy generation
  • Consume the generator Sdk from Moq.Sdk to inject IMocked interface
  • Override all virtual members
  • Add design-time proxies support via analyzers and code fixes
  • Add support for updating out-of-date proxies (analyzer + codefix)
  • Returns
  • Callbacks
  • Events
  • Throws
  • Setup void methods
  • Default value for Task/Task
  • Overridable default value behavior
  • Named mocks
  • Make debugging and inspecting mocks and their state awesome
  • Recursive mocks
  • Verify
  • Verifiable
  • All Moq v4 features available in v5
  • Linq to Mocks @marianor
  • Stunts nuget package via NuGetizer
  • Stunts.Sdk nuget package via NuGetizer
  • Moq.Sdk nuget package via NuGetizer
  • CI nuget feed with all packages
  • Analyzer/code fixes for legacy APIs via nuget
  • New website, maybe docfx? See https://www.dennisdel.com/how-we-build-documentation/. Autofac.org uses RTD...
  • Code coverage badge via coveralls.io
  • Bring back dynamic run-time proxies
@drieseng
Copy link

drieseng commented Aug 4, 2019

With moq/moq.spikes@6a10327 done (which is great, btw), I assume you can also mark the Verify and/or Verifiable tasks done. Or what else did you have planned for these tasks?

@kzu
Copy link
Member Author

kzu commented Oct 29, 2020

@marianor I'd love it if you could rebase on top of main and see how it's all working out for the Linq implementation 💯

@RealGoodAnthony
Copy link

Would it be possible to see mocks of sealed types and non-virtual methods? It could be done with an IL hooking mechanism such as MonoMod.RuntimeDetour.

@kzu
Copy link
Member Author

kzu commented Apr 5, 2021

@RealGoodAnthony won't happen, nope. Moq has always been about automating what you could already do by hand. Sealed and non-virtual interception is something you could never do by hand, so, highly unlikely to ever happen (I personally wouldn't spend a minute on it, TBH).

@udlose
Copy link

udlose commented Jan 25, 2023

Is there any timeline for Moq v5? I see this issue was opened in Apr 2017.

@kzu
Copy link
Member Author

kzu commented Jan 31, 2023

I'm resuming work on it this year. Should be able to ship it, finally :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants