Latest articles and tutorials
How to use Moq for mocking objects with xUnit and .NET
Learn how to use Moq for mocking objects like classes and interfaces in an xUnit test project when writing unit tests for .NET and C# projects.How to use xUnit to run unit testing in .NET and C#
xUnit beginners tutorial on how to run unit testing in C# and .NET using the Fact and Theory attributes, as well as focusing on different Assert methods.How to create ASP.NET Core Web API CRUD methods
We create an ASP.NET Core Web API project and show CRUD examples using GET, POST, PUT & DELETE methods with routing as well as how to test in Postman.Try our C# online code editor
Work out the number of days between two dates
Write a C# function to work out the difference between two dates and return the number of days in this coding challenge.
Contains online code editor
Removing the last character from a string
This coding challenge involves writing a C# method that will removing the last character from a string and returning the value.
Contains online code editor
Write a C# function to convert MPH to KPH
Take our coding challenge to write a C# function with the necessary parameters that converts miles-per-hour (MPH) to kilometres-per-hour (KPH) and vice-versa.
Contains online code editor