Testing101
abot
Testing101 | abot | |
---|---|---|
5 | 1 | |
7 | 2,205 | |
- | - | |
1.7 | 0.0 | |
11 months ago | 11 months ago | |
C# | C# | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Testing101
-
Don't duplicate logic in Asserts: The most common mistake on unit testing
Let's write some tests for Stringie, a (fictional) library to manipulate strings with a fluent interface. Stringie has a Remove() method to remove substrings from the end of a string.
-
How to create custom assertions in C# with MSTest
With this new assertion method, we can refactor one of our tests for Stringie, a (fictional) library to manipulate strings. We used Stringie to learn 4 common mistakes when writing tests and 4 test naming conventions.
-
Unit Test Best Practices: On Assertions
For example, let's bring back one test for Stringie, a (fictional) library to manipulate strings, to show the AAA pattern. Notice how each test has these 3 parts. For the sake of the example, we have put comments in each part. You don't need to do that on your own tests.
-
4 naming conventions to better name your tests
If you want to practice naming unit tests, check my Unit Testing 101 repository.
-
4 common mistakes when writing your first unit tests
If you want to practice identifying and fixing these mistakes, check my Unit Testing 101 repository. You will find the tests that Stringie developers wrote and some other misatkes mistakes they made. Your mission, Jim, should you choose to accept it, is to fix them.
abot
-
Can you build a web crawler in c#?
This can be done perfectly well in c#, https://github.com/sjdirect/abot for example.
What are some alternatives?
Fluent Assertions - A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.
Modern.Forms - Cross-platform spiritual successor to Winforms for .NET 6+
PdfSharpCore - Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
btelnyy-ConfigLoader - a YAML like Config loader made in C#
pete - A library for building servers that utilize the OpenMetaverse Transport Protocol: a protocol for communicating world information in the metaverse.
wit-dotnet - .NET library for Wit.ai
RtMidi.Core - RtMidi for .Net Standard
RESTCountries.NET - ⚡Offline dotnet standard library to get information about countries
SimultaneousConsoleIO - C# command line tool for reading console input and writing console output at the same time.
NWNLogRotator - Automatically stores, cleans, and colorizes your Neverwinter Nights chat logs.