in

DotNetMarche

.NET Framework User Group delle Marche

Browse by Tags

  • Nunit and PropertyConstraint

    The PropertyConstraint of nunit is useful to assert some condition on a property of an object. This constraint permits to specify the Name of the property and then a constraint on his value. The only thing that miss is a better error message when the object does not contains the specified property. Suppose...
    Posted to ExternalBlogs (Weblog) by Anonymous on 07 Apr 2008
  • NUNIT and C# 3.5

    One of the most important characteristic of a test is readability, the test should be clear and its intent should be self evident. When working with domain object it is recurring to make test to assert that in some collection we have a fixed amount of objects with a given property equal to a given [...
    Posted to ExternalBlogs (Weblog) by Anonymous on 21 Mar 2008
  • Nunit fluent, some details

    In old post I spoke about one little library to easy the use of nunit assertion with fluent interface. All the game is done with a MyConstraintBuilder class that offers some basic properties and methods to build the assert expression. Internally I use a stack to store all the constraint private Stack<Constraint>...
    Posted to ExternalBlogs (Weblog) by Anonymous on 05 Feb 2008
  • More fluent on Nunit

    In the previous post I talked about nunit and fluent interface, I did some modification, now I can write [Test]public void TestSimpleEqualsConditionedProperty3() { SimpleThreeProps obja = new SimpleThreeProps(“test”, 15, “EQ”); SimpleThreeProps objb = new SimpleThreeProps(“test”...
    Posted to ExternalBlogs (Weblog) by Anonymous on 07 Dec 2007
  • Comparing Entities

    This morning a friend of mine post about testing for equality of two class. My opinion is that to test if we have the need to test if two entities has all or some property equals it is better not to override equals or modify the original entity. I’m collecting a series of helpers class [...]
    Posted to ExternalBlogs (Weblog) by Anonymous on 07 Dec 2007
  • Nunit e interfacce fluenti

    Giovedi mentre tornavo da Luserna, nell'ultimo tratto di treno non ho resistito a tenere il portatile chiuso ed ho un po esteso quello che avevo iniziato in un precedente post . L'argomento è quello di fare test con interfacce fluenti, ed un post di adrian il giorno dopo cade a fagiolo. In sostanza...
    Posted to ExternalBlogs (Weblog) by Anonymous on 01 Dec 2007
  • Assert Sulle collezioni

    Molto spesso nei test si deve verificare se una collezione di entity contiene un oggetto con una proprietà di un dato valore, in questo caso non si può utilizzare il classico Contains della collection ma nunit ci viene in aiuto fornendo alcuni syntax helper interessanti. Considerate una classe chiamata...
    Posted to ExternalBlogs (Weblog) by Anonymous on 25 Nov 2007
  • Nunit, forse dovrebbero manutere meglio il sito

    Stasera mi faccio un giro su www.nunit.org , controllo e dico…ancora siamo alla versione 2.4.3….ma è una vita che non aggiornano..poi ale che è a due passi da me fa, ma io nel sito vedo la 2.4.5….????? morale della favola, su www.nunit.org il sito non è più aggiornato per cui andate su www.nunit.com...
    Posted to ExternalBlogs (Weblog) by Anonymous on 25 Nov 2007
  • Chi testa i test?

    Ricordo che al TechEd si parlava proprio con Mauro di questo problema. Non sono un fanatico del TDD e lo utilizzo raramente, però sono un accanito sostenitore dei test, senza fare fondamentalismo, talvolta scrivo i test prima, talvolta invece li scrivo dopo, non testo tutto ma cerco di creare una batteria...
    Posted to ExternalBlogs (Weblog) by Anonymous on 20 Nov 2007
  • Model View Controller and Cross Thread Ui methods invoke

    If you adopt a MVC pattern for your code in windows forms, each form should implements some Interface to make possible for the controller to communicate with the UI. This is needed so the Controller does not work directly with the form but instead with an interface such as IShippingUi. But what happens...
    Posted to ExternalBlogs (Weblog) by Anonymous on 30 Oct 2007
Page 1 of 2 (20 items) 1 2 Next >
Powered by Community Server (Commercial Edition), by Telligent Systems