The event arguments for the PlayerJoined event.
Наследование: GameEventArgs
 public void ToString0198()
 {
     PlayerJoinedEventArgs playerJoinedEventArgs;
     string s;
     playerJoinedEventArgs = new PlayerJoinedEventArgs(1, "");
     ((GameEventArgs)playerJoinedEventArgs).SenderId = 0;
     ((GameEventArgs)playerJoinedEventArgs).EventId = (string)null;
     ((GameEventArgs)playerJoinedEventArgs).EventType = (EventType)0;
     ((GameEventArgs)playerJoinedEventArgs).NeedResponse = false;
     s = this.ToString01(playerJoinedEventArgs);
     Assert.AreEqual<string>("1,", s);
     Assert.IsNotNull((object)playerJoinedEventArgs);
     Assert.AreEqual<int>(1, playerJoinedEventArgs.PlayerId);
     Assert.AreEqual<string>("", playerJoinedEventArgs.PlayerNick);
     Assert.AreEqual<int>(0, ((GameEventArgs)playerJoinedEventArgs).SenderId);
     Assert.AreEqual<string>
     ((string)null, ((GameEventArgs)playerJoinedEventArgs).EventId);
     Assert.AreEqual<EventType>
     ((EventType)0, ((GameEventArgs)playerJoinedEventArgs).EventType);
     Assert.AreEqual<bool>
     (false, ((GameEventArgs)playerJoinedEventArgs).NeedResponse);
 }
Пример #2
0
 public PlayerJoinedEventArgs Constructor01(string[] stringArgs)
 {
     PlayerJoinedEventArgs target = new PlayerJoinedEventArgs(stringArgs);
     return target;
     // TODO: add assertions to method PlayerJoinedEventArgsTest.Constructor01(String[])
 }
Пример #3
0
 public PlayerJoinedEventArgs Constructor(int playerId, string playerNick)
 {
     PlayerJoinedEventArgs target = new PlayerJoinedEventArgs(playerId, playerNick);
     return target;
     // TODO: add assertions to method PlayerJoinedEventArgsTest.Constructor(Int32, String)
 }