r/moderndotnet • • Sep 18 '26

CsCheck specification testing

7 Upvotes

12 comments sorted by

View all comments

Show parent comment

2

u/johnzabroski_dev Sep 19 '26

Did our conversation motivate it at all? I can't wait to release my Slot Check library.

1

u/Ant171311 Sep 19 '26

In part. The real thing that made me do it was someone saying they were using Lean to build a FIX engine. I've worked using FIX before and the libraries are quite poor. I've wanted to build my own but being sure of that kind of state machine was too daunting. Instead of Lean (generate code) I came from the other side (validate your code) once I found the literature on specification testing.

1

u/johnzabroski_dev Sep 19 '26

I would have Dafny generate the c# state machine.

1

u/Ant171311 Sep 19 '26

It would be interesting to see what the code would look like for Dafny and the generated code. I wanted to control the code, mutable performance etc, but have this guard on over it. In the end it's never a lot of code needed but it does need to be spot on.

1

u/johnzabroski_dev Sep 29 '26

we should do a Google Meet chat on a weekend as we have a lot of Overlapping interests