OnPopWithBadNumberOfArguments() public method

public OnPopWithBadNumberOfArguments ( string soda, Spring.Util.EventRaiser raiser ) : void
soda string
raiser Spring.Util.EventRaiser
return void
 public void RaiseWithBadNumberOfArguments () 
 {
     OneThirstyDude dude = new OneThirstyDude ();
     Soda bru = new Soda ();
     bru.Pop += new PopHandler (dude.HandlePop);
     Assert.Throws<TargetParameterCountException>(() => bru.OnPopWithBadNumberOfArguments ("Iron Brew", new EventRaiser ()));
 }
 public void RaiseWithBadNumberOfArguments () 
 {
     OneThirstyDude dude = new OneThirstyDude ();
     Soda bru = new Soda ();
     bru.Pop += new PopHandler (dude.HandlePop);
     bru.OnPopWithBadNumberOfArguments ("Iron Brew", new EventRaiser ());
 }
        public void RaiseWithBadNumberOfArguments()
        {
            OneThirstyDude dude = new OneThirstyDude();
            Soda           bru  = new Soda();

            bru.Pop += new PopHandler(dude.HandlePop);
            Assert.Throws <TargetParameterCountException>(() => bru.OnPopWithBadNumberOfArguments("Iron Brew", new EventRaiser()));
        }
Beispiel #4
0
        public void RaiseWithBadNumberOfArguments()
        {
            OneThirstyDude dude = new OneThirstyDude();
            Soda           bru  = new Soda();

            bru.Pop += new PopHandler(dude.HandlePop);
            bru.OnPopWithBadNumberOfArguments("Iron Brew", new EventRaiser());
        }