Opaluwa Emidowo-ojotech-on-diapers.hashnode.dev·Jul 1, 2024A Beginner's Guide to Unit Testing in C# Using xUnitWelcome to the third article in the "Mastering C#" series. In this article, we will explore unit testing in C# using xUnit, a popular and flexible framework for .NET that simplifies writing and running tests. xUnit supports modern features like param...Discuss·21 likes·61 readsunit testing
Joshua Stewardconcurrentflows.com·Apr 16, 2024Azure Service Bus: Integration Testing with xUnit and Admin ClientService Bus Series - Part 3 The previous post, Part 2: Authentication and Sending to a Queue, covered authenticating to and writing to a Service Bus Queue. To do this we used the QueueSender background service. While this worked, it begs the question...Discuss·994 readsWorking with Azure Service BusC#
Geo J Thachankarygeothachankary.hashnode.dev·Oct 7, 2023Unit Testing in .NET Core - Mastering MockingThis is the fifth post in our Unit Testing in .NET Core series! In the previous post, we looked at writing better assertions in our unit tests. In this post, we will explore the concept of mocking in unit testing using xUnit, discuss different types ...Discuss·52 readsUnit Testing in .NET Core.net core
Geo J Thachankarygeothachankary.hashnode.dev·Oct 1, 2023Unit Testing in .NET Core - Better Assertions with FluentAssertions and ShouldlyThis is the fourth post in our Unit Testing in .NET Core series! In the previous post, we looked at parameterized unit testing. In this blog post, we will explore how to enhance your assertion capabilities in .NET Core unit testing, using the xUnit t...Discuss·33 readsUnit Testing in .NET Coreunit testing
Michael Nelsonmichael-nelson.co.uk·Sep 20, 2023Exploring Custom Attributes in AutoFixture and xUnitWriting setup code for unit tests can be a cumbersome activity. Especially in legacy codebases where many tests may be missing, or unreliable, or when the unit being tested is larger than it would be given sufficient time and resources to refactor it...Discuss·341 readsunit testing
Geo J Thachankarygeothachankary.hashnode.dev·Sep 14, 2023Unit Testing in .NET Core - Writing Parameterized Unit Tests with xUnit.netThis is the third post in our Unit Testing in .NET Core series! In the previous post, we looked at the xUnit library and wrote our first unit tests using a simple calculator app as our example. In this post, we will look into parameterized unit testi...Discuss·40 readsUnit Testing in .NET Core.net core
Guilherme Raduenzrdnz.dev·Aug 31, 2023Creating integration tests with ASP.NET CoreCheck examples in this GitHub repository. Introduction Testing has a huge impact on software development by helping to prevent bugs and ensure the quality of changes in the long term. Good tests, once written, make sure that you didn’t break anythin...Discussdotnet
Pritom Purkayastapritom.hashnode.dev·Aug 6, 2023DbContext, Dbset Mocking - C# made easyIntroduction Entity Framework Core is a popular Object-Relational Mapping (ORM) framework used by so many .NET developers for interacting with databases. One of the challenges we as developers face while unit testing code that interacts with database...Discuss·1 like·3.0K readsefcore
Geo J Thachankarygeothachankary.hashnode.dev·Jul 31, 2023Unit Testing in .NET Core - Getting Started with xUnit.netThis is the second post in our Unit Testing in .NET Core series! In the previous post, we covered an introduction to unit testing and explored the various testing frameworks available in .NET Core. Now, in this post, we'll take a deep dive into xUnit...Discuss·37 readsUnit Testing in .NET Core.net core
Mister Pmisterp.hashnode.dev·May 22, 2023Integration Testing with .NET WebApplicationFactoryContext In this post I will cover my approach to writing integration tests, using .NETs WebApplicationFactory. Why this approach? After an initial setup, it's very straightforward writing new tests and refactoring old ones. Easy to work with atomic...Discuss·1.8K reads.NET