home recent topics recent posts search faq  

Pretty Objects Visual T# Forum



register | lost password   open id sign in with Twitter
Messages in this topic - RSS

Home » T# Videos » Testing right events... at the right time!

Videos showing how to use Visual T#
|
10/29/2010 8:24:23 AM

Ludovic Dubois
Ludovic Dubois
Administrator
Posts: 159
In this video (11:06), you will learn (still in French):
  • Simple: one line of code to test the the right event is raised:
    assert raised <instance>.<event>;

  • Complete: test whatever you want on your event, or any side effects you expect:
    assert raised <instance>.<event>( object sender, <AnyEventArgs> args ) // Or any signature to match event delegate
    {
      assert sender == ...;
      assert args.... == ...;
      ...
    }


  • Right time: the event should be raised only if a change occur, not if it is the same value.
    assert !raised <instance>.<event>; 
Be sure your business code raise the right event at the right time! Cool


Access source code from our svn server at https://www.prettyobjects.com:7567/svn/public/TSharp/Products/?p=18
<em>edited by Ludovic Dubois on 29/10/2010</em>

Attachments:
Business-5.avi
0 permalink
|

Home » T# Videos » Testing right events... at the right time!





Powered by Jitbit Forum 7.2.14.1 © 2006-2011 Jitbit Software