The event arguments for the ChooseAction event.
Inheritance: GameEventArgs
 public void PopulateWithArgs322()
 {
     ChooseActionEventArgs s0 = new ChooseActionEventArgs((ActionType)0);
     ((GameEventArgs)s0).SenderId = 0;
     ((GameEventArgs)s0).EventId = (string)null;
     ((GameEventArgs)s0).EventType = (EventType)0;
     ((GameEventArgs)s0).NeedResponse = false;
     string[] ss = new string[1];
     ss[0] = "1";
     this.PopulateWithArgs(s0, ss);
     Assert.IsNotNull((object)s0);
     Assert.AreEqual<ActionType>(ActionType.Advance, s0.ActionType);
     Assert.AreEqual<int>(0, ((GameEventArgs)s0).SenderId);
     Assert.AreEqual<string>((string)null, ((GameEventArgs)s0).EventId);
     Assert.AreEqual<EventType>((EventType)0, ((GameEventArgs)s0).EventType);
     Assert.AreEqual<bool>(false, ((GameEventArgs)s0).NeedResponse);
 }
 public void PopulateWithArgsThrowsContractException167()
 {
     try
     {
       ChooseActionEventArgs s0 = new ChooseActionEventArgs((ActionType)0);
       ((GameEventArgs)s0).SenderId = 0;
       ((GameEventArgs)s0).EventId = (string)null;
       ((GameEventArgs)s0).EventType = (EventType)0;
       ((GameEventArgs)s0).NeedResponse = false;
       string[] ss = new string[1];
       ss[0] = "0\0";
       this.PopulateWithArgs(s0, ss);
       throw
     new AssertFailedException("expected an exception of type ContractException");
     }
     catch(Exception ex)
     {
       if (!PexContract.IsContractException(ex))
     throw ex;
     }
 }
Ejemplo n.º 3
0
 public ChooseActionEventArgs Constructor01(string[] stringArgs)
 {
     ChooseActionEventArgs target = new ChooseActionEventArgs(stringArgs);
     return target;
     // TODO: add assertions to method ChooseActionEventArgsTest.Constructor01(String[])
 }
Ejemplo n.º 4
0
 public ChooseActionEventArgs Constructor(ActionType actionType)
 {
     ChooseActionEventArgs target = new ChooseActionEventArgs(actionType);
     return target;
     // TODO: add assertions to method ChooseActionEventArgsTest.Constructor(ActionType)
 }