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...DiscussWorking 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·27 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...DiscussUnit Testing in .NET Coreunit testing
Mateusz Całkasaalin.hashnode.dev·Sep 25, 2023Useful attributes for xUnitxUnit lacks useful functionalities, but the strength of a good framework is that one can easily implement needed features. Today I would like to present two examples, that I found useful in everyday work. Repeating tests There are different opinions ...DiscussC#
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·191 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...DiscussUnit Testing in .NET Core.net core
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·996 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...DiscussUnit 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·959 reads.NET
Milan Jovanovićmilanjovanovic.hashnode.dev·Mar 18, 2023Creating Data-Driven Tests With xUnitData-driven testing is a testing method where test data is provided through some external source. Hence it's also known as parameterized testing. A popular testing library in .NET that supports parameterized testing is xUnit. It uses attributes to de...DiscussC#