第16åããã°ã©ãã³ã°è¨èªã¨TDDã¯ãã©ã¡ããå ã«ãã¹ã¿ã¼ãã¹ããï¼ åç°å人 2007-12-21
íì ë¡ê·¸ì¸ íìê°ì ë¡ê·¸ì¸ ì림 à ë«ê¸° Save changes
UnitTest ã§é¨åããã£ããå®ã£ã¦ããã®ã«éç¨æã«ã¨ã©ã¼ ããã« version up æã«ã¯é å¼µã£ã¦æ¸ãã UnitTest ãç¡é§ã«ãªã UnitTest ã®åå¨æ義ã«çåãåºã¦ãããããæ¸ããã¨ããæ°åãè½ã¡ã æèåæ¢ãã¦é å¼µã£ã¦ã¾ãæ¸ãã¦ããã¾ãéç¨æã«ã¨ã©ã¼ãèµ·ãã¡ãã ãããã¦æªããªãºã ãçã¾ãã¦ãã é·æçãªå帰ãã¹ãã¨ãã¦ã¯ UnitTest ã¯ç¡å ã¾ãæ¸ãã¹ã㯠End to End ã®ãã¹ãã ã£ãã»ã»ã» æ²³ç°ã»ã»ã»åå ¥ãã¹ãã«ã¤ãï¼ ãªãã»ã©ãUnitTest ãããåå ¥ãã¹ãã®æ¹ã対象ã¨ãªãã·ã¹ãã ã®æåã¨å¯æ¥ã§ããããã確ãã« ãã¹ãã³ã¼ããé·çããã ã¨ãã¨ããããããããããã§åé¡ã解決ãã¦ããããã§ããããã«ãå®è¡è ã人ã§ãªãã¨ãããªããã¨è¨ã£ã¦ãã®ã¯ãªãï¼ãããããåé¡ã®æ ¸å¿ã ãããã®çãããè¨ã㰠人ã§ããæ¹ããã¹ãã³ã¼ããããã«é·çããã ãã
NUnit ã® "Hello, world!" ï½ C# 2008 Express + NUnit 2.5 ã§ã ãã¹ããã¡ã¼ã¹ãã® Step by Step NUnit ãã¤ã³ã¹ãã¼ã«ãã¦åä½ç¢ºèªã¾ã§ã§ãã ã®ã§ã 次ã¯ã NUnit ã使ã£ã¦ãã¹ããã¡ã¼ã¹ãã§ããã°ã©ã ãä½ãæ¹æ³ã«ã¤ãã¦ã§ãã éçºç°å¢ã¨ãã¦ã¯ã Visual Studio 2008 Express Edition SP1 ã® C# ã使ãã¾ãã ãªãã Visual Studio 2008 ã® Pro. ç以ä¸ã«ã¯ã MS ç¬èªã®åä½ãã¹ãæ©è½ãããã¾ããã åºæ¬çãªèãæ¹ã¯ NUnit ã使ãå ´åã¨å¤ããã¾ããã ãã¹ããã¡ã¼ã¹ãã§ããã°ã©ã ãä½ã£ã¦ããæ¹æ³ ( TDD : Test Driven Development ) ã¯ã 次ã®ãããªæµãã«ãªãã¾ãã [0] ä½æãããã¡ã½ãã ( ããã³ã ãã®ã¡ã½ããã
TddAntiPatterns - TDD ã®ã¢ã³ããã¿ã¼ã³ ç®æ¬¡ ãã®ææ¸ã«ã¤ã㦠TDD ã®ã¢ã³ããã¿ã¼ã³ TDD ã¢ã³ããã¿ã¼ã³ã»ã«ã¿ãã° åã¤ãã (The Liar) ã»ããã¢ããéå¤ (Excessive Setup) 巨人 (The Giant) ã¢ãã¯é ã (The Mockery) æ¤æ»å® (The Inspector) 太ã£è ¹ãªæ®ãç© (Generous Leftovers) å°å ã®è±é (Local Hero) å°å§ (The Nitpicker) ç§å¯ã®ãã£ãã (The Secret Catcher) ããã³å¸« (The Dodger) 大声 (The Loudmouth) ã¯ããºããã£ãã (The Greedy Catcher) åºåå± (The Sequencer) é ãä¾å (Hidden Dependency) ç¹å¼ (The Enumerator)
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}