microsoft / SimpleStubs

*SimpleStubs* is a simple mocking framework that supports Universal Windows Platform (UWP), .NET Core and .NET framework. SimpleStubs is currently developed and maintained by Microsoft BigPark Studios in Vancouver.
Other
66 stars 29 forks source link

Error with interfaces having methods returning tuples #25

Closed jaaufauvre closed 6 years ago

jaaufauvre commented 7 years ago

Hi,

It seems the methods returning tuples cannot be stubbed right now:

For instance: DateTime min, DateTime max) ComputeDates();

Causes the following code to be generated: void global::My.Package.IService.ComputeDates()

Instead of: (DateTime min, DateTime max) global::My.Package.IService.ComputeDates()

Alex.

nehmebilal commented 7 years ago

Hi @Alex-D14. Thanks for reporting this issue. Yes, multiple return types is a new feature that we haven't added support for yet; hopefully soon!

jaaufauvre commented 7 years ago

Thanks!

nehmebilal commented 6 years ago

Tuples are now supported (since we upgraded to the latest version of Roslyn). I added additional tests to verify that tuples are working as expected.