# Saturday, May 29, 2004

A number of new assertions classes have been added to MbUnit since the latest post on this topic.  The new helper classes involve Arrays, collection, compiler, serialization, web...

ArrayAssert

This helper class contains method to compare arrays:

byte[] expected = ...;
byte[] actual = ...;
ArrayAssert.AreEqual(expected,actual);

The method compares the rank, the length and makes element-wize comparaison.

ColAssert

This class provides several methods to compare two ICollection instance:

ICollection expected = ...;
ICollection actual = ...;

ColAssert.IsSynchronized(actual);
ColAssert.AreCountEqual(expected,actual);
ColAssert.AreEqual(expected,actual);

The class also provides method to test the collection count, syncroot, synchronization, etc...

SerialAssert

This class contains various methods to test the "serializability" of objects.

SerialAssert.IsXmlSerializable(typeof(MyClass));

WebAssert

This class contains assertions on the properties of web control and web pages.

CompilerAssert

This class contains assertions to check that snippets are compilable:

String source = ...; // C# code to compile
// verify that source compiles
CompilerAssert.Compiles(CompilerAssert.CSharpCompiler, source);

What about your assertions ?

There is also a CodeSmith template that can let you build "strongly-typed" assertion classes out of existing types. See in the templates directory.

posted on Saturday, May 29, 2004 9:48:00 PM (Pacific Daylight Time, UTC-07:00)  #    Comments [8]
Tracked by:
http://www.google.com/search?q=wicycwrg [Pingback]
http://www.google.com/search?q=mmuoxwmg [Pingback]
http://www.google.com/search?q=btnldthx [Pingback]
http://www.google.com/search?q=oyfotnpx [Pingback]
http://buildguide.net/forum/templates/subRed/4/generic-viagra.htm [Pingback]
http://kitaabghar.com/dir/javascript/2/weightlosstip.htm [Pingback]
http://bluehoney.org/bluehoney/images/base/2/soma-cheap.htm [Pingback]
http://kitaabghar.com/dir/javascript/1/zyrtec.htm [Pingback]
http://arkarpa.org/joomla/images/misc/2/nexium.htm [Pingback]
http://thelosthub.com/templates_c/3/buy-propecia.htm [Pingback]
http://buildguide.net/forum/templates/subRed/1/orderviagra.htm [Pingback]
http://e-rat.org/aaarg/images/misc/4/viagra-online.htm [Pingback]
http://buildguide.net/forum/templates/subRed/3/vicodin.htm [Pingback]
http://programmazioneneurolinguistica.com/feeds/3/zone-diet.htm [Pingback]
http://urdustan.com/catalog/images/sys/4/hydrocodone.htm [Pingback]
http://bluehoney.org/bluehoney/images/base/1/buy-online-soma.htm [Pingback]
http://e-rat.org/aaarg/images/misc/1/cheap-tramadol.htm [Pingback]
http://programmazioneneurolinguistica.com/feeds/3/phentermine-adipex.htm [Pingback]
http://powerlance.com/template/misc/4/order-hydrocodone.htm [Pingback]
http://urdustan.com/catalog/images/sys/3/buyvalium.htm [Pingback]
http://programmazioneneurolinguistica.com/feeds/1/vitamin.htm [Pingback]
http://bluehoney.org/bluehoney/images/base/4/tramadol-discount.htm [Pingback]
http://powerlance.com/template/misc/1/drug.htm [Pingback]
http://arkarpa.org/joomla/images/misc/2/propecia.htm [Pingback]
http://programmazioneneurolinguistica.com/feeds/4/weight-loss-supplement.htm [Pingback]
http://thelosthub.com/templates_c/3/vitamin.htm [Pingback]
http://programmazioneneurolinguistica.com/feeds/2/meridia-online.htm [Pingback]
http://thelosthub.com/templates_c/3/prescription-drug.htm [Pingback]
http://thelosthub.com/templates_c/2/diet-pill-phentermine.htm [Pingback]
http://chatcake.com/tmp/4/weight-loss-supplement.htm [Pingback]
http://arkarpa.org/joomla/images/misc/1/ambien.htm [Pingback]
http://thelosthub.com/templates_c/4/ultram-online.htm [Pingback]
http://pickeringpublishing.com/Bringitonhome/archives/1/safeviagrawoman.htm [Pingback]
http://bluehoney.org/bluehoney/images/base/2/diet-pill-phentermine.htm [Pingback]
http://chatcake.com/tmp/3/canadian-pharmacy.htm [Pingback]
http://e-rat.org/aaarg/images/misc/2/cialis-online.htm [Pingback]
http://pickeringpublishing.com/Bringitonhome/archives/1/levitra.htm [Pingback]
http://bluehoney.org/bluehoney/images/base/1/cheapcialis.htm [Pingback]
http://programmazioneneurolinguistica.com/feeds/2/buy-xanax-on-line.htm [Pingback]
http://programmazioneneurolinguistica.com/feeds/4/hoodia-diet-pills.htm [Pingback]
http://chatcake.com/tmp/3/bestdietpills.htm [Pingback]
http://programmazioneneurolinguistica.com/feeds/4/canadian-pharmacy.htm [Pingback]
http://programmazioneneurolinguistica.com/feeds/1/drug.htm [Pingback]
http://arkarpa.org/joomla/images/misc/3/buyphentermine.htm [Pingback]
http://pickeringpublishing.com/Bringitonhome/archives/3/buy-viagra-online.htm [Pingback]
http://powerlance.com/template/misc/3/phentermineprescription.htm [Pingback]
http://urdustan.com/catalog/images/sys/2/nexium.htm [Pingback]
http://kitaabghar.com/dir/javascript/3/zone-diet.htm [Pingback]
http://kitaabghar.com/dir/javascript/4/ephedra-diet-pill.htm [Pingback]
http://alsysinc.com/images/Image/a/lipitor-zocor.htm [Pingback]
http://getindyknow.com/components/com_mymenu/2/meridia-online.htm [Pingback]
http://shining.com/store/ph/d/pharmacy.htm [Pingback]
http://localboard.on.ca/GuestBook/public/c/tramadoldiscount.htm [Pingback]
http://shop.trovata.com/images/misc/4/meridia-weight-loss.htm [Pingback]
http://helpthemknow.com/phplist/attachments/b/hoodiadietpills.htm [Pingback]
http://localboard.on.ca/GuestBook/public/c/ultramonline.htm [Pingback]
http://inlay.com/phpBB/cache/misc/c/ultram-online.htm [Pingback]
http://shop.trovata.com/images/misc/2/viagrapill.htm [Pingback]
http://shining.com/store/ph/a/tramadolonline.htm [Pingback]
http://getindyknow.com/components/com_mymenu/3/ultram-online.htm [Pingback]
http://getindyknow.com/components/com_mymenu/2/buy-online-soma.htm [Pingback]
http://shining.com/store/ph/b/buy-soma.htm [Pingback]
http://inlay.com/phpBB/cache/misc/a/soma-cheap.htm [Pingback]
http://www.eufos-vienna2007.org/fileadmin/template/css/d/effexor-xr.htm [Pingback]
http://getindyknow.com/components/com_mymenu/4/phentermine-adipex.htm [Pingback]
http://shining.com/store/ph/b/xanax.htm [Pingback]
http://localboard.on.ca/GuestBook/public/b/zyrtec.htm [Pingback]
http://helpthemknow.com/phplist/attachments/d/ephedra-diet-pill.htm [Pingback]
http://helpthemknow.com/phplist/attachments/d/weight-loss-supplement.htm [Pingback]
http://helpthemknow.com/phplist/attachments/b/viagrapill.htm [Pingback]
http://shop.trovata.com/images/misc/1/zyrtec.htm [Pingback]
http://www.alpenhof.it/fileadmin/inc/b/effexor-xr.htm [Pingback]
http://alsysinc.com/images/Image/b/zyrtec.htm [Pingback]
http://www.eufos-vienna2007.org/fileadmin/template/css/a/unitedhealthcare.htm [Pingback]
http://www.alpenhof.it/fileadmin/inc/a/healthydiet.htm [Pingback]
http://shining.com/store/ph/d/order-viagra.htm [Pingback]
http://inlay.com/phpBB/cache/misc/a/weightlossprogram.htm [Pingback]
http://shining.com/store/ph/a/generic-viagra.htm [Pingback]
http://inlay.com/phpBB/cache/misc/d/hydrocodone-online.htm [Pingback]
http://www.eea-esem2006.org/fileadmin/c/vicodin.htm [Pingback]
http://helpthemknow.com/phplist/attachments/a/effexor.htm [Pingback]
http://alsysinc.com/images/Image/a/buy-propecia-online.htm [Pingback]
http://shop.trovata.com/images/misc/4/weight-loss-supplement.htm [Pingback]
http://shop.trovata.com/images/misc/1/effexor.htm [Pingback]
http://getindyknow.com/components/com_mymenu/2/zyrtec.htm [Pingback]
http://helpthemknow.com/phplist/attachments/c/canadian-pharmacy.htm [Pingback]
http://inlay.com/phpBB/cache/misc/b/diet-pill-phentermine.htm [Pingback]
http://shining.com/store/ph/c/diet-pills.htm [Pingback]
http://shining.com/store/ph/a/buy-cialis.htm [Pingback]
http://shop.trovata.com/images/misc/3/canadian-pharmacy.htm [Pingback]
http://inlay.com/phpBB/cache/misc/c/tramadol-discount.htm [Pingback]
http://localboard.on.ca/GuestBook/public/a/prescription-drug.htm [Pingback]
http://getindyknow.com/components/com_mymenu/3/tramadol-discount.htm [Pingback]
http://inlay.com/phpBB/cache/misc/b/phentermine-prescription.htm [Pingback]
http://www.eufos-vienna2007.org/fileadmin/template/css/b/alternativestoviagra.ht... [Pingback]
http://localboard.on.ca/GuestBook/public/b/meridia-online.htm [Pingback]
http://shining.com/store/ph/b/diet.htm [Pingback]
http://www.dezwei.at/coppermine/albums/b/how-to-pass-a-drug-test.htm [Pingback]
http://localboard.on.ca/GuestBook/public/d/buy-xanax-on-line.htm [Pingback]
http://localboard.on.ca/GuestBook/public/c/cvspharmacy.htm [Pingback]
http://inlay.com/phpBB/cache/misc/a/buy-propecia.htm [Pingback]
http://alsysinc.com/images/Image/b/effexor.htm [Pingback]
http://alsysinc.com/images/Image/d/weight-loss-tip.htm [Pingback]
http://www.alpenhof.it/fileadmin/inc/c/cheap-meridia.htm [Pingback]
http://inlay.com/phpBB/cache/misc/d/buy-xanax-on-line.htm [Pingback]
http://www.ballunspitze.com/captcha/c/ephedra-diet-pill.htm [Pingback]
http://www.dezwei.at/coppermine/albums/c/effexorxr.htm [Pingback]
http://www.eea-esem2006.org/fileadmin/a/carisoprodol.htm [Pingback]
http://shining.com/store/ph/d/cheaptramadol.htm [Pingback]
http://www.dezwei.at/coppermine/albums/b/health-food-store.htm [Pingback]
http://localboard.on.ca/GuestBook/public/b/phentermine-prescription.htm [Pingback]
http://www.eea-esem2006.org/fileadmin/d/xanax.htm [Pingback]
http://localboard.on.ca/GuestBook/public/a/soma-cheap.htm [Pingback]
http://www.dezwei.at/coppermine/albums/c/walgreensdrugstore.htm [Pingback]
http://www.ballunspitze.com/captcha/c/weight-loss-supplement.htm [Pingback]
http://alsysinc.com/images/Image/c/best-prices-on-phentermine.htm [Pingback]
http://localboard.on.ca/GuestBook/public/d/hydrocodone-online.htm [Pingback]
http://shining.com/store/ph/d/paxil.htm [Pingback]
http://www.dezwei.at/coppermine/albums/c/buy-cheap-soma.htm [Pingback]
http://www.eea-esem2006.org/fileadmin/c/buyviagraonline.htm [Pingback]
http://www.eea-esem2006.org/fileadmin/d/buycialisonline.htm [Pingback]
http://www.eea-esem2006.org/fileadmin/a/buy-tramadol.htm [Pingback]
http://shop.trovata.com/images/misc/4/levitrabuy.htm [Pingback]
http://alsysinc.com/images/Image/b/spywaredoctor.htm [Pingback]
http://www.eufos-vienna2007.org/fileadmin/template/css/a/online-order-phentermin... [Pingback]
http://www.alpenhof.it/fileadmin/inc/d/purchase-phentermine.htm [Pingback]
http://www.eufos-vienna2007.org/fileadmin/template/css/b/buyphentermineonline.ht... [Pingback]
http://egmsys.com/pmwiki/wiki.d/base/a/buy-phentermine-online.htm [Pingback]
http://tlcwe.com/cerberus-gui/templates_c/c/buy-online-soma.htm [Pingback]
http://sapid-club.com/soap/base/b/cheap-viagra.htm [Pingback]
http://parmleyphotography.com/images/d/effexor.htm [Pingback]
http://karenclarkphotography.com/clientgallery/c/zone-diet.htm [Pingback]
http://airport.by/drupal/files/b/weightloss.htm [Pingback]
http://parmleyphotography.com/images/a/orderdiazepam.htm [Pingback]
http://egmsys.com/pmwiki/wiki.d/base/a/prescriptiondrug.htm [Pingback]
http://parmleyphotography.com/images/d/phentermineprescription.htm [Pingback]
http://thebadd.org/mailcenter/users/ericp-thebadd.org/d/vicodin.htm [Pingback]
http://egmsys.com/pmwiki/wiki.d/base/a/buycarisoprodol.htm [Pingback]
http://scripts.tlcwe.com/kbase/manage/backup/c/diet.htm [Pingback]
http://actionhouse.net/shop/b/cheep-phentermine.htm [Pingback]
http://tlcwe.com/cerberus-gui/templates_c/a/buy-phentermine-online.htm [Pingback]
http://www.google.com/search?q=wohmyajb [Pingback]
http://sapid-club.com/soap/base/c/buy-soma.htm [Pingback]
http://scripts.tlcwe.com/kbase/manage/backup/c/order-viagra.htm [Pingback]
http://actionhouse.net/shop/d/alternatives-to-viagra.htm [Pingback]
http://tuttlemedia.com/images/main_page/c/unitedhealthcare.htm [Pingback]
http://tuttlemedia.com/images/main_page/c/alternatives-to-viagra.htm [Pingback]
http://parmleyphotography.com/images/d/buy-online-soma.htm [Pingback]
http://thebadd.org/mailcenter/users/ericp-thebadd.org/b/pharmacy.htm [Pingback]
http://egmsys.com/pmwiki/wiki.d/base/b/weight-loss-program.htm [Pingback]
http://karenclarkphotography.com/clientgallery/b/viagra-prescriptions.htm [Pingback]
http://karenclarkphotography.com/clientgallery/d/hoodiadietpills.htm [Pingback]
http://airport.by/drupal/files/d/viagra-online.htm [Pingback]
http://kathywolfephotography.com/site_images/sec_photos/c/zone-diet.htm [Pingback]
http://sapid-club.com/soap/base/b/weight-loss.htm [Pingback]
http://actionhouse.net/shop/a/best-diet-pills.htm [Pingback]
http://egmsys.com/pmwiki/wiki.d/base/c/zyrtec.htm [Pingback]
http://tuttlemedia.com/images/main_page/a/healthy-diet.htm [Pingback]
http://ligakvn.de/new/images/a/effexor.htm [Pingback]
http://kathywolfephotography.com/site_images/sec_photos/a/zyrtec.htm [Pingback]
http://egmsys.com/pmwiki/wiki.d/base/d/tramadolultram.htm [Pingback]
http://tuttlemedia.com/images/main_page/b/genericbuyviagra.htm [Pingback]
http://scripts.tlcwe.com/kbase/manage/backup/b/buyviagraonline.htm [Pingback]
http://karenclarkphotography.com/clientgallery/d/atkins-diet.htm [Pingback]
http://actionhouse.net/shop/a/viagradiscount.htm [Pingback]
http://airport.by/drupal/files/b/cheap-viagra.htm [Pingback]
http://scripts.tlcwe.com/kbase/manage/backup/b/tramadolonline.htm [Pingback]
http://thebadd.org/mailcenter/users/ericp-thebadd.org/a/xanax.htm [Pingback]
http://karenclarkphotography.com/clientgallery/c/buy-valium-online.htm [Pingback]
http://scripts.tlcwe.com/kbase/manage/backup/a/levitra.htm [Pingback]
http://egmsys.com/pmwiki/wiki.d/base/c/effexor.htm [Pingback]
http://tlcwe.com/cerberus-gui/templates_c/c/ultram-online.htm [Pingback]
http://scripts.tlcwe.com/kbase/manage/backup/c/ambien.htm [Pingback]
http://tlcwe.com/cerberus-gui/templates_c/d/phentermineprescription.htm [Pingback]
http://karenclarkphotography.com/clientgallery/a/effexor.htm [Pingback]
http://thebadd.org/mailcenter/users/ericp-thebadd.org/b/paxil.htm [Pingback]
http://parmleyphotography.com/images/b/alprazolam.htm [Pingback]
http://tlcwe.com/cerberus-gui/templates_c/a/xenical.htm [Pingback]
http://kathywolfephotography.com/site_images/sec_photos/b/buy-valium-online.htm [Pingback]
http://airport.by/drupal/files/d/diet-pills.htm [Pingback]
http://actionhouse.net/shop/c/levitra.htm [Pingback]
http://thebadd.org/mailcenter/users/ericp-thebadd.org/b/buy-cialis.htm [Pingback]
http://kathywolfephotography.com/site_images/sec_photos/d/diet-plan.htm [Pingback]
http://actionhouse.net/shop/c/generic-buy-viagra.htm [Pingback]
http://sapid-club.com/soap/base/d/dietpills.htm [Pingback]
http://scripts.tlcwe.com/kbase/manage/backup/b/cheap-viagra.htm [Pingback]
http://karenclarkphotography.com/clientgallery/c/cabbage-soup-diet.htm [Pingback]
http://glamourshades.com/drupal/files/b/healthy-diet.htm [Pingback]
http://tuttlemedia.com/images/main_page/b/weight-loss-tip.htm [Pingback]
http://kathywolfephotography.com/site_images/sec_photos/d/best-diet-pills.htm [Pingback]
http://airport.by/drupal/files/c/ambien.htm [Pingback]
http://airport.by/drupal/files/b/buy-viagra-online.htm [Pingback]
http://sapid-club.com/soap/base/c/order-viagra.htm [Pingback]
http://airport.by/drupal/files/c/diet.htm [Pingback]
http://karenclarkphotography.com/clientgallery/d/phentermine-adipex.htm [Pingback]
http://actionhouse.net/shop/d/carisoprodol350mg.htm [Pingback]
http://iseu.by/board/Packages/a/valium.htm [Pingback]
http://tuttlemedia.com/images/main_page/a/viagra-discount.htm [Pingback]
http://thebadd.org/mailcenter/users/ericp-thebadd.org/c/order-cialis.htm [Pingback]
http://ligakvn.de/new/images/c/meridiaonline.htm [Pingback]
http://ligakvn.de/new/images/a/alprazolam.htm [Pingback]
http://tuttlemedia.com/images/main_page/c/order-hydrocodone.htm [Pingback]
http://ligakvn.de/new/images/c/buy-vicodin.htm [Pingback]
http://thebadd.org/mailcenter/users/ericp-thebadd.org/b/diet.htm [Pingback]
http://actionhouse.net/shop/c/orderhydrocodone.htm [Pingback]
http://glamourshades.com/drupal/files/a/order-diazepam.htm [Pingback]
http://tuttlemedia.com/images/main_page/a/propecia-online.htm [Pingback]
http://tuttlemedia.com/images/main_page/c/walgreens-drug-store.htm [Pingback]
http://abuw.org/chat/chat/localization/thai/a/buy-phentermine-online.htm [Pingback]
http://taleea.com/alascripts/alachat/data/b/diet-pills.htm [Pingback]
http://abuw.org/chat/chat/localization/thai/d/prescription-tramadol.htm [Pingback]
"spinet pianos" (online) [Trackback]