haf / expecto

A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!
Apache License 2.0
663 stars 96 forks source link

ExpectoConfig: add C# compatible With* methods / Logging: add Task based Interface #259

Closed 0x53A closed 6 years ago

0x53A commented 6 years ago

As the C# sample project shows, it is already possible without too much fuzz to define Tests in C#.

But without the F# with expression, it is actually pretty hard to update the config.

This adds .With* methods, and also adds a way for C# code to define a Printer.

haf commented 6 years ago

Minor fix @0x53A before merge — but I think we can merge this with that change.

AnthonyLloyd commented 6 years ago

@0x53A @haf it still needs to be moved to CSharp namespace.

0x53A commented 6 years ago

I'll fix the async issue - good catch, thank you.

Which parts should be moved to the CSharp namespace? Just the interface? Or should I also move the with* methods to extension methods and the CSharp namespace?

I'll do it tomorrow, because I currently don't have internet at home.

AnthonyLloyd commented 6 years ago

@0x53A Everything that is in Expecto.fs. I think it can all be extention methods. Thanks

0x53A commented 6 years ago

Ok the two should be done.

Can you please take a look again?

Thank you both.

AnthonyLloyd commented 6 years ago

Thank you very much!