CCNet port to .NEt core

8 views
Skip to first unread message

Ruben Willems

unread,
Jun 5, 2019, 9:52:32 AM6/5/19
to ccnet-devel
Hi all

I'm trying to port CCNet to .NEt Core.
Stuff done so far :
° netreflector + tests
° CCNet
      * Objection + tests
      * Remote (dropped the remoting part because that does not exist in .Net Core)

Now the problem starts with the tests, because we used various mocking libraries
through the years :-(

Questions :
° should we still use mocking libraries, or do we write our own fakes ?
      this ensures that we do not have this problem again in the future,
      but it can be a lot of work
° if we use a mocking library, which one?
      the only one I could find after a quick search was : MOQ
       I never used it though
     --> learning this library can also be a lot of work

any preferences ?

any second thoughts, suggestions


with kind regards
Ruben Willems


Benjamin Baumann

unread,
Jun 5, 2019, 1:14:40 PM6/5/19
to ccnet...@googlegroups.com
Hello

I am not active at all in CCnet initiative but I am using extensively Moq at work and find it very easy to use. It does the job perfectly.

Several limitations though :
- you can only mock interfaces or virtual/abstract methods
- moq struggles to handle optional arguments. Some extension methods (easily found on the net) are needed to make it work.

Hope this helps
Benjamin

--

---
You received this message because you are subscribed to the Google Groups "ccnet-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ccnet-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ccnet-devel/CAFV2QHd_v3dn3wx4vkbrrG1gfCDn_Gaf47zhVwoOpeBs_hJ6eg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruben Willems

unread,
Jun 5, 2019, 2:10:47 PM6/5/19
to ccnet-devel
Hi

thanks for the info,
as far  as I can see for now, those limitations I'm not going to encounter.
so I'll give it a shot.


grts
Ruben


Reply all
Reply to author
Forward
0 new messages