Starting up with C# and .Net Core
A simple startup guide for C# and Unit testing with NUnit. Continue Reading →
Github and Azure DevOps specialist, Visual Studio Development Technologies MVP and NUnit core team member
A simple startup guide for C# and Unit testing with NUnit. Continue Reading →
A test adapter sits between a TestHost and the test framework. If you use Visual Studio or dotnet, both starts up a TestHost as a seperate process. The testhost is responsible for locating the adapters, and then invoke them to run the test frameworks on the test code. Debugging the adapters is hard, because it sits between these processes, of which you have no control. Continue Reading →
Background With the introduction of .NET core some time back, Visual Studio got two different project systems. Along with this, we also got two different formats for a ‘csproj’ file. The new format have a better way of including packages, called PackageReference. This also made its way into the old style format, and greatly simplifies Continue Reading →
Once upon a time it was declared that an Assert statement should have constraints given as AreEqual and AreNotEqual. Further it was declared that it should be written in the opposite way of how a developer will think, that is with the expected value first and the actual value last. Why this was made so, Continue Reading →
I have had a need to have more easy access to information on how to do certain stuff, and have some easy access to simple code blocks, or templates, I can copy/paste. A blog post is for me somewhat more extensive, and that format was not really suited for smaller notes. So I decided to Continue Reading →
Introduction You have all seen it, you have all done it: Written code using the static methods from the System.IO namespace for handling directories and files. Or, you are maintaining legacy code where that usage is common in certain places. And now the code is huge, you have no unit tests, because unit testing classes Continue Reading →
Caches On Windows:
%LocalAppData%\NuGet\Cache
%UserProfile%\.nuget\packages
To clear: nuget locals all --clear
Feed url: https://api.nuget.org/v3/index.json
VSTest
NUnitAdapter, use runsettings
From admin prompt:
Start powershell:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
https://www.microsoft.com/net/download/visual-studio-sdks
Add this tag to the initial propertygroup
AppendTargetFrameworkToOutputPath
Set value to false