Esempio n. 1
0
 public void Users_Instances_With_Equal_Ids_Must_Have_Same_HashCode()
 {
     // Arrange
     string userId = "13579842";
     User firstUserInstance = new User(userId);
     User secondUserInstance = new User(userId);
     // Act
     int firstHashCode = firstUserInstance.GetHashCode();
     int secondHashCode = secondUserInstance.GetHashCode();
     // Assert
     Assert.AreEqual(firstHashCode, secondHashCode);
 }