ilovedotnet
ilovedotnet
February 9, 2025 at 05:20 PM
FluentAssertions Went Paid. What Did I Do? I Migrated 1000+ Tests in Seconds! January 2025 started with a surprise—FluentAssertions, the popular free assertion library for .NET, is now paid. At $130 per developer, our enterprise (1000+ devs) decided it wasn’t worth the cost. That’s when I had a realization: 💡 Over a decade, I had unknowingly introduced technical debt by relying on FluentAssertions in every project I worked on. So, I took action. I wanted a fast, automated way to migrate every test to xUnit assertions. First, I tried LLMs (Ollama)—worked for a single assertion but became slow for large-scale repo migration. Then, I switched to Regex. ⚡ Boom! In seconds, my entire repo (1000+ test methods) was converted. ✅ 90%+ automated conversion ✅ Manual cleanup took just an hour ✅ Now, we’re FluentAssertions-free Lesson learned: Choose dependencies wisely. Even the best free tools can turn paid. If you’ve been using FluentAssertions, it’s time to rethink. Would you pay $130 per dev or migrate? Let me know your thoughts! 👇💬 Check https://ilovedotnet.org/blogs/using-regex-to-migrate-from-fluent-assertions-to-xunit-assertions for idea and code sample!!
👍 2

Comments