Archive for the Testing category

Vaughan

Why you should start using property based testing

.NET Core, Testing

I want to convince you to try Property-based testing in your projects. Its a really powerful approach when combined with classic unit testing. When we write a unit test we generally use what they call example based testing. What this means is that we create an expected response and run our test to confirm that […]

Read more
Vaughan

ASP.NET Core integration tests with WebApplicationFactory

.NET Core, Testing

We all agree that we want to have tests that cover as much of our application as possible. Right? The general approach with ASP.NET applications has been to extract meaningful business logic out of your controllers. Pretty much everything that needs to be tested would be injected with an interface so that its easy to […]

Read more
Vaughan

The problem with the BlockingCollection

MultiThreading, Testing

The BlockingCollection is a really powerful thread-safe collection that can be a really powerful tool to use where appropriate. Generally you could consider it where you have a common instance of a class accessed from multiple threads. It gives the class control on how many items are added or taken in a thread-safe way. Calling […]

Read more
Vaughan

Rx as part of your standard toolkit

MultiThreading, RX, Testing No Comment

For years I heard about RX in .NET but never really found a compelling reason to use it. About a year ago we started using it in my team and let me just say that things have changed. Now I don’t think theres a compelling reason NOT to use it as part of your standard […]

Read more

BMC logoBuy me a coffee