isthereagoodtooltogenerateunittestcasesgivensaya.netorjavaproject, itgeneratesunittestcasesthatwouldcoveranalmost 100 % code coverage.thenumberoftestcasescouldbedirectionaltothecyclomarage herthenestingofloopsandconditionsthehigherthecyclomaticcomplexity )。 wherethehigherthecyclomaticcomplexity, thegreaterthesetoftestcasesaregenerated.I ' mnotexpectingittobefullyfunctional (sayi ' mgoingtobuildtheunitteststsandrunitandrunitatata ftit ts been generated ), butiwouldsaythatitcanhaveatemplatestyleinthetestcasewhereyouaretomodifythecasethatsuitsyourintendedneeeds.butitshouldalso halso haved thodandisgoodenoughtodetectifmockobjectsforunittestingshouldbeusedshouldtherebeanydependencies .haveapropersetupandteteandteandis
For .NET,microsofthaspexwhichwillhopefullygomainstreamfor.net 4.0,alongwithcodecontracts.ihighlyrecommmendwatchingthechechechor
itstrikesmethatthissortofthingisverygoodforverydata-driven classes-parsers etc.Ican ' tsee that I ' dveryoftenstartofwithit