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; } }
public ChooseActionEventArgs Constructor01(string[] stringArgs) { ChooseActionEventArgs target = new ChooseActionEventArgs(stringArgs); return target; // TODO: add assertions to method ChooseActionEventArgsTest.Constructor01(String[]) }
public ChooseActionEventArgs Constructor(ActionType actionType) { ChooseActionEventArgs target = new ChooseActionEventArgs(actionType); return target; // TODO: add assertions to method ChooseActionEventArgsTest.Constructor(ActionType) }