I have been working in Windows form applications and ASP.Net applications for the past 10 months. I always wondered how to do proper unit testing in a complete application using all the scripts. I have the following questions regarding them:
, , unit test, , .Net, . , , , , ( , ...). , ( ).
, V-, :
. ( ), . . , , CI Server ( ) , , , , , ., , "" ( ) , , . , , . . , StoryTeller ., . , , , . , , .
. ( ), . . , , CI Server ( ) , , , , , .
, , "" ( ) , , . , , . . , StoryTeller .
, . , , , . , , .
, :
?
.Net Test Units . ( ), ( ). .
, Windows Forms, - ..?
. , . , .
, , ? ?
, , , , , , . , unit test , , , . -, , .
, .
: Michael Feathers. .
, "" unit test it:-( "" , - - , unit test ( ) .
, unit test ( Perather - " " ). , , , , 1000 , . , , , . , , , , , ... , .
, ( , , - - ;). , . , . , / , (, ). , , , . , " " , . , , , ...
, " " "" . , . , , , . . , 60%, .
, . , , , . , . , , , .
NUnit - , VS ( , VS2008, , VS2005 )
- , , , , , , , .
? .NET. NUnit MbUnit.
http://www.nunit.org/
http://www.mbunit.com/
MbUnit , . , , . (, Gallio, MbUnit) -, . , , Fixture. , . :
void when_my_class_is_sent_a_user_it_should_save_it()
[MethodName_StateUnderTest_ExpectedBehavior]
, Windows Forms, - ..? . , - . , , .
, , ? Test Driven Design ( , , ). .
? : .Net by Roy Osherove # NUnit
? , NUnit MbUnit. MSTest ( VS2008), xUnit . , NUnit MbUnit.
10 , , unit test , ( ) .
, , FitNesse StoryTeller.
Source: https://habr.com/ru/post/1737324/More articles:MsBuild WriteLinesToFile Task for Multiple Files - msbuildStatic Compilation Qt 4.6.2 - staticКак проанализировать "" с помощью feedparser? - pythonXSL: Columnized List - xmlPHP побитовое смещение влево 32-разрядная проблема и плохие результаты с арифметическими операциями больших чисел - bit-manipulationHow to migrate URL parameters when CakePHP form validation fails - validationAccess Controls in Silverlight DataGrid Column Header from Code - .netJavaScript: list of global variables in IE - javascriptHow to get the difference between two dates? - cocoa-touchDisplay from different properties based on discriminator value using AutoMapper .netAll Articles