The basic naming of a test comprises of three main parts: [MethodName_StateUnderTest_ExpectedBehavior] Examples: Public void Sum_NegativeNumberAs1stParam_ExceptionThrown() Public void Sum_NegativeNumberAs2ndParam_ExceptionThrown () Public void Sum_simpleValues_Calculated ()
Introduction to Test Driven Design (TDD) - 0 views
1 - 6 of 6
Showing 20▼ items per page