nowfound

Dev tools · August 30, 2021

AC

A C# library to help you enforce a Given-When-Then structured Unit test

I always strive to write better, clean and readable code. But I often find unit tests are hard to read, and especially harder to quickly identify what are the important pieces, or even what the test is testing about. So I came up with this lightweight library to help enforce unit tests with a Given-When-Then structure. I hope you find this useful. Any feedback are welcome. https://github.com/cobrakai-lab/Cobrakai.GWTUnit

A C# library to help you enforce a Given-When-Then structured Unit test launched on August 30, 2021 with 24 votes, #1,153 of 2,953 launches that month and more than 75% of that year's launches.

In plain words

This C# library helps developers structure unit tests using the Given-When-Then pattern to improve readability and clarity. It enforces a consistent format that makes it easier to quickly identify what is being tested and understand the important parts of each test. Designed for developers who want cleaner, more maintainable unit tests, the lightweight library aims to standardize test organization across projects.

written from the facts on this page · September 2026

Does a similar job

all alternatives →
  • Match(it): A C++17 pattern-matching library with lots of good stuffs2022 · github.com · ▲85

    A lightweight single-header pattern-matching library for C++17 with macro-free APIs. Try it at https://godbolt.org/z/8YMr8Kz8j

  • Cross Platform .NET Desktop Application Framework2017 · browseemall.com · ▲129

    Making Web Testing Easier Automated testing on 3000+ desktop & mobile browser at Studio version! Making Web Testing Easier Automated testing on 3000+ desktop & mobile browser at Studio version! Explore product trial and special offers Download TRIAL version to start your full 1 day evaluation now! M

  • Writing modern C unit tests with Criterion2015 · github.com · ▲34

    A cross-platform C and C++ unit testing framework for the 21st century - Snaipe/Criterion

  • Declarative Testing Framework for REST, GraphQL APIs2018 · github.com · ▲45

    :boom: Test REST, GraphQL APIs. Contribute to kiranz/just-api development by creating an account on GitHub.

  • Code generation tool for quick struct content comparison2019 · github.com · ▲54

    Serialization code generator for QUICK struct content comparison - CovenantSQL/HashStablePack

  • CXXStateTree – A modern C++ library for hierarchical state machines2025 · github.com · ▲48

    Hi HN! I've built [CXXStateTree](https://github.com/ZigRazor/CXXStateTree), a modern C++ header-only library to create hierarchical state machines with clean, intuitive APIs. It supports: - Deeply nested states - Entry/exit handlers - State transitions with guards and actions - Asynchronous transitions with `co_await` (C++20 coroutines) - Optional runtime type identification for flexibility It's ideal for complex control logic, embedded systems, games, robotics, and anywhere you'd use a finite state machine. I’d love feedback, use cases, or contributions from the…

More dev tools this month

the category →
  • /dev/null▲487

    a social network for devs

    Dev tools · 3d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 28d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 26d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 23d ago · openbot.run

  • Talanoa▲346

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 21d ago · talanoa.email

  • CoreSpeed▲332

    One MCP for everything your agents need: apps, memory, tools

    Dev tools · 28d ago · corespeed.io

Source: Show HN post ↗

Launched alongside, August 2021

the whole month →
  • II

    Hey all My name is Sindre, and I am the CTO of Scrimba (YC S20). For the last 7 years, I have written all my web apps in a full-stack programming language called Imba. It compiles to JavaScript and its main goal is to make web developers more productive. I just launched a major overhaul of Imba, so I wanted to share it here on HN, in case anyone are interested in learning more about it. It is very opinionated, so some of you might not like it, but I would love to hear anyones feedback regardless. Constructive criticism appreciated! The backstory: Imba initially started in 2012 as an effort…

    Life & fun · 2021

  • WB

    Hello HN, Over the last year we've been building ente[1], a privacy-friendly, easy-to-use alternative to Google Photos. We've so far built Android[2][3], iOS[4], web[5] apps that encrypt your files and back them up in the background. You can access these across your devices, and share them with other ente users, end-to-end encrypted. You can also use our electron app[6] to maintain a local copy of your backed up files. We've built a fault-tolerant data replication layer that replicates your data to two different storage providers in the EU. We will be providing additional replicas as an…

    Life & fun · 2021

  • SigmaOS▲1,026

    The browser that makes YOU fast

    Work · 2021 · sigmaos.com

  • OpenAI's smartest and most intuitive to use model yet

    AI · 2021 · openai.com

  • Publication dedicated to bootstrapping founders

    Growth · 2021 · bootstrappers.com

  • Poet.so▲767

    Capture and share Twitter posts as beautiful images

    Growth · 2021 · poet.so