public void Calculates_correct_hash_code() { ConnectionSettings settings1 = new ConnectionSettings("Server", "Database", true, "Username", "Password"); int expectedHashCode = "ServerDatabaseUsernamePasswordTrue".GetHashCode(); Assert.That(settings1.GetHashCode(), Is.EqualTo(expectedHashCode)); }