After I finished last article, I started to think that there should be another way to test the non-virtual methods of a class. And, as a matter of fact, there is another…
Category: Development
Mocking non-virtual methods of a class
Introduction Usually I use interfaces for my unit tests. This is a good practice, and should be followed when possible. But, last week I was testing some legacy code, which had no…
Discover what is consuming your disk with NTFS structures
Introduction Some time ago, I wrote this post with this accompanying source code. It showed the way to use NTFS file structures to enumerate files and show the files that take more…
Parsing the command line for your application with System.CommandLine
A very common issue when dealing with console applications is to parse the command line. I am a huge fan of command line applications, especially when I want to add an operation…
Learning and documenting .NET with dotnet try
Introduction Learning a new programming language is always hard. You have to read the documentation, stop, go to the IDE of your choice, start a new project, compile and run the program…
Analyzing your app with NDepend
One of the perks of being an MVP is to receive some tools for my own use, so I can evaluate them and if, I find them valuable, I can use them…
Data Breakpoints in VS 2019 and .Net Core 3.0
One thing that comes to me sometimes when I am debugging a program is to see a variable that has changed value, but I don’t know where and when it was changed….
Configuring a Windows developer machine with no admin rights
Recently, I went to a client, where they assigned me a machine to work, but there was no software installed, and there was no admin rights to install any software. I had…
Accessing Sharepoint data with C#
You need to create customized reports based on Sharepoint data and you don’t have the access to the server to create a new web part to access it directly. You need to…
Cleaning your code with VS 2019
One book that I recommend the reading is Clean Code, by Robert Martin. It is a well written book with wonderful techniques to create better code and improve your current programs, so…