The event arguments for the GiveCoins event.
Inheritance: GameEventArgs
 public void PopulateWithArgsThrowsContractException()
 {
     try
     {
       GiveCoinsEventArgs giveCoinsEventArgs;
       giveCoinsEventArgs = new GiveCoinsEventArgs(1, 1);
       ((GameEventArgs)giveCoinsEventArgs).SenderId = 0;
       ((GameEventArgs)giveCoinsEventArgs).EventId = (string)null;
       ((GameEventArgs)giveCoinsEventArgs).EventType = (EventType)0;
       ((GameEventArgs)giveCoinsEventArgs).NeedResponse = false;
       this.PopulateWithArgs(giveCoinsEventArgs, (string[])null);
       throw
     new AssertFailedException("expected an exception of type ContractException");
     }
     catch(Exception ex)
     {
       if (!PexContract.IsContractException(ex))
     throw ex;
     }
 }
 public void ToString01689()
 {
     GiveCoinsEventArgs giveCoinsEventArgs;
     string s;
     giveCoinsEventArgs = new GiveCoinsEventArgs(1, 1);
     ((GameEventArgs)giveCoinsEventArgs).SenderId = 0;
     ((GameEventArgs)giveCoinsEventArgs).EventId = (string)null;
     ((GameEventArgs)giveCoinsEventArgs).EventType = (EventType)0;
     ((GameEventArgs)giveCoinsEventArgs).NeedResponse = false;
     s = this.ToString01(giveCoinsEventArgs);
     Assert.AreEqual<string>("1,1", s);
     Assert.IsNotNull((object)giveCoinsEventArgs);
     Assert.AreEqual<int>(1, giveCoinsEventArgs.PlayerId);
     Assert.AreEqual<int>(1, giveCoinsEventArgs.NumberOfCoins);
     Assert.AreEqual<int>(0, ((GameEventArgs)giveCoinsEventArgs).SenderId);
     Assert.AreEqual<string>
     ((string)null, ((GameEventArgs)giveCoinsEventArgs).EventId);
     Assert.AreEqual<EventType>
     ((EventType)0, ((GameEventArgs)giveCoinsEventArgs).EventType);
     Assert.AreEqual<bool>(false, ((GameEventArgs)giveCoinsEventArgs).NeedResponse);
 }
 public void PopulateWithArgs379()
 {
     GiveCoinsEventArgs giveCoinsEventArgs;
     giveCoinsEventArgs = new GiveCoinsEventArgs(1, 1);
     ((GameEventArgs)giveCoinsEventArgs).SenderId = 0;
     ((GameEventArgs)giveCoinsEventArgs).EventId = (string)null;
     ((GameEventArgs)giveCoinsEventArgs).EventType = (EventType)0;
     ((GameEventArgs)giveCoinsEventArgs).NeedResponse = false;
     string[] ss = new string[2];
     ss[0] = "1";
     ss[1] = "1";
     this.PopulateWithArgs(giveCoinsEventArgs, ss);
     Assert.IsNotNull((object)giveCoinsEventArgs);
     Assert.AreEqual<int>(1, giveCoinsEventArgs.PlayerId);
     Assert.AreEqual<int>(1, giveCoinsEventArgs.NumberOfCoins);
     Assert.AreEqual<int>(0, ((GameEventArgs)giveCoinsEventArgs).SenderId);
     Assert.AreEqual<string>
     ((string)null, ((GameEventArgs)giveCoinsEventArgs).EventId);
     Assert.AreEqual<EventType>
     ((EventType)0, ((GameEventArgs)giveCoinsEventArgs).EventType);
     Assert.AreEqual<bool>(false, ((GameEventArgs)giveCoinsEventArgs).NeedResponse);
 }
Esempio n. 4
0
 public GiveCoinsEventArgs Constructor01(string[] stringArgs)
 {
     GiveCoinsEventArgs target = new GiveCoinsEventArgs(stringArgs);
     return target;
     // TODO: add assertions to method GiveCoinsEventArgsTest.Constructor01(String[])
 }
Esempio n. 5
0
 public GiveCoinsEventArgs Constructor(int playerId, int numberOfCoins)
 {
     GiveCoinsEventArgs target = new GiveCoinsEventArgs(playerId, numberOfCoins);
     return target;
     // TODO: add assertions to method GiveCoinsEventArgsTest.Constructor(Int32, Int32)
 }