The event arguments for the RerollDices event.
Inheritance: GameEventArgs
 public void PopulateWithArgs261()
 {
     RerollDicesEventArgs rerollDicesEventArgs;
     int[] ints = new int[1];
     rerollDicesEventArgs = new RerollDicesEventArgs(ints);
     ((GameEventArgs)rerollDicesEventArgs).SenderId = 0;
     ((GameEventArgs)rerollDicesEventArgs).EventId = (string)null;
     ((GameEventArgs)rerollDicesEventArgs).EventType = (EventType)0;
     ((GameEventArgs)rerollDicesEventArgs).NeedResponse = false;
     string[] ss = new string[2];
     ss[0] = "0";
     ss[1] = "0";
     this.PopulateWithArgs(rerollDicesEventArgs, ss);
     Assert.IsNotNull((object)rerollDicesEventArgs);
     Assert.IsNotNull(rerollDicesEventArgs.DiceIds);
     Assert.AreEqual<int>(2, rerollDicesEventArgs.DiceIds.Length);
     Assert.AreEqual<int>(0, rerollDicesEventArgs.DiceIds[0]);
     Assert.AreEqual<int>(0, rerollDicesEventArgs.DiceIds[1]);
     Assert.AreEqual<int>(0, ((GameEventArgs)rerollDicesEventArgs).SenderId);
     Assert.AreEqual<string>
     ((string)null, ((GameEventArgs)rerollDicesEventArgs).EventId);
     Assert.AreEqual<EventType>
     ((EventType)0, ((GameEventArgs)rerollDicesEventArgs).EventType);
     Assert.AreEqual<bool>(false, ((GameEventArgs)rerollDicesEventArgs).NeedResponse);
 }
 public void ToString01640()
 {
     RerollDicesEventArgs rerollDicesEventArgs;
     string s;
     int[] ints = new int[1];
     rerollDicesEventArgs = new RerollDicesEventArgs(ints);
     ((GameEventArgs)rerollDicesEventArgs).SenderId = 0;
     ((GameEventArgs)rerollDicesEventArgs).EventId = (string)null;
     ((GameEventArgs)rerollDicesEventArgs).EventType = (EventType)0;
     ((GameEventArgs)rerollDicesEventArgs).NeedResponse = false;
     s = this.ToString01(rerollDicesEventArgs);
     Assert.AreEqual<string>("0", s);
     Assert.IsNotNull((object)rerollDicesEventArgs);
     Assert.IsNotNull(rerollDicesEventArgs.DiceIds);
     Assert.AreEqual<int>(1, rerollDicesEventArgs.DiceIds.Length);
     Assert.AreEqual<int>(0, rerollDicesEventArgs.DiceIds[0]);
     Assert.AreEqual<int>(0, ((GameEventArgs)rerollDicesEventArgs).SenderId);
     Assert.AreEqual<string>
     ((string)null, ((GameEventArgs)rerollDicesEventArgs).EventId);
     Assert.AreEqual<EventType>
     ((EventType)0, ((GameEventArgs)rerollDicesEventArgs).EventType);
     Assert.AreEqual<bool>(false, ((GameEventArgs)rerollDicesEventArgs).NeedResponse);
 }
 public void PopulateWithArgsThrowsContractException121()
 {
     try
     {
       RerollDicesEventArgs rerollDicesEventArgs;
       int[] ints = new int[1];
       rerollDicesEventArgs = new RerollDicesEventArgs(ints);
       ((GameEventArgs)rerollDicesEventArgs).SenderId = 0;
       ((GameEventArgs)rerollDicesEventArgs).EventId = (string)null;
       ((GameEventArgs)rerollDicesEventArgs).EventType = (EventType)0;
       ((GameEventArgs)rerollDicesEventArgs).NeedResponse = false;
       string[] ss = new string[1];
       ss[0] = "";
       this.PopulateWithArgs(rerollDicesEventArgs, ss);
       throw
     new AssertFailedException("expected an exception of type ContractException");
     }
     catch(Exception ex)
     {
       if (!PexContract.IsContractException(ex))
     throw ex;
     }
 }
 public void ToString01844()
 {
     RerollDicesEventArgs rerollDicesEventArgs;
     string s;
     int[] ints = new int[3];
     ints[0] = int.MaxValue;
     ints[1] = int.MaxValue;
     rerollDicesEventArgs = new RerollDicesEventArgs(ints);
     ((GameEventArgs)rerollDicesEventArgs).SenderId = 0;
     ((GameEventArgs)rerollDicesEventArgs).EventId = (string)null;
     ((GameEventArgs)rerollDicesEventArgs).EventType = (EventType)0;
     ((GameEventArgs)rerollDicesEventArgs).NeedResponse = false;
     s = this.ToString01(rerollDicesEventArgs);
     Assert.AreEqual<string>("2147483647,2147483647,0", s);
     Assert.IsNotNull((object)rerollDicesEventArgs);
     Assert.IsNotNull(rerollDicesEventArgs.DiceIds);
     Assert.AreEqual<int>(3, rerollDicesEventArgs.DiceIds.Length);
     Assert.AreEqual<int>(int.MaxValue, rerollDicesEventArgs.DiceIds[0]);
     Assert.AreEqual<int>(int.MaxValue, rerollDicesEventArgs.DiceIds[1]);
     Assert.AreEqual<int>(0, rerollDicesEventArgs.DiceIds[2]);
     Assert.AreEqual<int>(0, ((GameEventArgs)rerollDicesEventArgs).SenderId);
     Assert.AreEqual<string>
     ((string)null, ((GameEventArgs)rerollDicesEventArgs).EventId);
     Assert.AreEqual<EventType>
     ((EventType)0, ((GameEventArgs)rerollDicesEventArgs).EventType);
     Assert.AreEqual<bool>(false, ((GameEventArgs)rerollDicesEventArgs).NeedResponse);
 }
示例#5
0
 public RerollDicesEventArgs Constructor01(string[] stringArgs)
 {
     RerollDicesEventArgs target = new RerollDicesEventArgs(stringArgs);
     return target;
     // TODO: add assertions to method RerollDicesEventArgsTest.Constructor01(String[])
 }
示例#6
0
 public RerollDicesEventArgs Constructor(int[] diceIds)
 {
     RerollDicesEventArgs target = new RerollDicesEventArgs(diceIds);
     return target;
     // TODO: add assertions to method RerollDicesEventArgsTest.Constructor(Int32[])
 }