ReadingNotes

Unit Testing and Documentation

Unit testing

Use relevant and high-quality test data.

Aim for one assert per test method to improve test clarity.

Avoid test interdependence to ensure independence and reliability.

Consider writing tests before writing code (Test Driven Development).

Keep test setup short, sweet, and visible for easy understanding.

Use headless testing when appropriate for efficiency and consistency.

Test positive and negative scenarios, including boundary conditions.

Use mock objects to simulate dependencies and isolate code being tested.

Ensure compliance with industry standards and document compliance testing.

Ensure tests are repeatable and deterministic.

Test for security vulnerabilities to ensure application security.

Recognize test setup pain as a design problem and improve code modularity.

Add unit tests to the build process to ensure their execution and reliability.

Using .NET Core with Visual Studio

things i want to know more