We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41232aa commit 405e34eCopy full SHA for 405e34e
1 file changed
docs/UnitTest/1 Basics.md
@@ -57,4 +57,10 @@ public class MathUtilTest
57
Assert.Equal(3, result);
58
}
59
60
-```
+```
61
+
62
+### Naming Conventions
63
+- Class Naming: Use the name of the class being tested followed by "Tests". For example, `MathUtilTests`.
64
+- Test Method Naming: Use descriptive names that indicate the method being tested and the expected outcome. For example
65
+ - `<MethodName>_Should<ExpectedBehavior>_When<Condition>`
66
+ - `Add_ShouldReturnSum_WhenGivenTwoIntegers`
0 commit comments