public void ClientUserNameAndTeamData_CopyConstructor_OtherIsNull_Test() { // Act var copy = new ClientUserNameAndTeamData(null); // Assert Assert.AreEqual(null, copy.FoldingID); Assert.AreEqual(0, copy.Team); }
/// <summary> /// Initializes a new instance of the <see cref="ClientUserNameAndTeamData"/> class. /// </summary> /// <param name="other">The other instance from which data will be copied.</param> public ClientUserNameAndTeamData(ClientUserNameAndTeamData other) { if (other == null) { return; } FoldingID = other.FoldingID; Team = other.Team; }
public void ClientUserNameAndTeamData_CopyConstructor_Test() { // Arrange var data = new ClientUserNameAndTeamData("harlam357", 32); // Act var copy = new ClientUserNameAndTeamData(data); // Assert Assert.AreEqual(data.FoldingID, copy.FoldingID); Assert.AreEqual(data.Team, copy.Team); }