pob CUnit yog nyob hauv "Libs" qebthiab koj tuaj yeem nruab nws tib yam li koj nruab lwm pob. Nco ntsoov siv qhov tseeb version. Koj yuav tsum siv 64-ntsis Cygwin thiab CUnit yog tias koj tab tom khiav 64-ntsis NetBeans IDE.
CUnit hauv C yog dab tsi?
CUnit yog lub teeb yuag rau kev sau ntawv, kev tswj hwm, thiab kev xeem chav tsev hauv C. Nws muab C programmers qhov kev sim ua haujlwm yooj yim nrog ntau yam hloov pauv ntawm cov neeg siv interfaces. CUnit yog tsim los ua lub tsev qiv ntawv zoo li qub uas txuas nrog tus neeg siv cov lej xeem.
Yuav ua li cas Khiav c chav kuaj?
In this article
- Create a project to test.
- Create a unit test project.
- Tsim chav xeem.
- Tsim thawj txoj kev sim.
- Tsim thiab ua qhov kev xeem.
- Kho koj tus lej thiab rov ua koj qhov kev xeem.
- Siv chav ntsuas ntsuas los txhim kho koj cov cai.
- Saib thiab.
Qhov twg zoo dua NUnit lossis MSTest?
Nunit nrawm dua. NUnit tuaj yeem khiav cov kev xeem hauv 32 thiab 64 ntsis (MSTest tsuas yog khiav lawv hauv 32 ntsis IIRC) NUnit tso cai rau cov chav kawm paub daws teeb meem los ua qhov kev xeem sib tw (yog li koj tuaj yeem tau txais txiaj ntsig kev xeem sib tw).
Ntawm twg zoo dua NUnit lossis xUnit?
Ob lub moj khaum yog qhov txaus, thiab lawv ob leeg txhawb nqa kev sib tw khiav (txawm li cas los xij). NUnit tau nyob ib puag ncig txij li xyoo 2002, nws tau siv dav, muaj ntaub ntawv zoo thiab muaj lub zej zog loj, whereas xUnit.net yog niaj hnub, ntau TDD adherent, ntau extensible, thiab kuj trending nyob rau hauv. NET Core development.