OnPopWithBadNumberOfArguments() 공개 메소드

public OnPopWithBadNumberOfArguments ( string soda, Spring.Util.EventRaiser raiser ) : void
soda string
raiser Spring.Util.EventRaiser
리턴 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 ()));
 }
예제 #2
0
 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()));
        }
예제 #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());
        }