no dogma blog
no dogma blog
Blog Posts
Podcast
Web API Lambda Course
Polly Course
Photos
Contact
Support this Site
About
RSS
Light
Dark
Automatic
Testing
Using Build and Test Tasks from the Parent Directory of src/test with VS Code
I often follow the src, test directory structure for my .NET projects. But if you open Visual Studio Code to the parent of these directories, you can’t use the build and test tasks without some modifications to the tasks.json file.
Jul 23, 2021
#
VSCode
,
Building
,
Testing
,
Tasks
Adding a Test Task to the VS Code Command Palette
I thought it would be simple to add a task to run tests from the VS Code command palette, but it was not as straightforward as I hoped. Here’s how to do it.
Jul 21, 2021
#
VSCode
,
Testing
,
Tasks
Testing Your Code When Using Polly
Full source code here. Want to learn more about Polly? Check out my Pluralsight course on it. When developing an application with Polly you will also probably want to write some unit tests.
Mar 10, 2019
#
Polly
,
Testing
,
Unit Test
Using the HttpClientInterception to Test Methods That Use a HttpClient
Full source code available here. In my previous post I showed a way of testing a controller that uses a HttpClient. I had to mock the HttpMessageHandler pass that to the HttpClient and set a bunch of properties.
Jan 13, 2018
#
HttpClient
,
Testing
,
Unit Test
,
WebApi
,
WebApi2
Customizing a specific string inside a class using AutoFixture
Full source code. I’ve been using AutoFixture for a while with my unit tests. It creates objects with prefilled data, saving me the hassle of manually constructing them. Basic usage If you want a string from AutoFixture do something like -
Apr 7, 2016
#
AutoFixture
,
SpecimenBuilder
,
TDD
,
Testing
Cite
×