public void TestAccountStateGetHashCode() { RepositoryBag repositoryBag = new RepositoryBag(); DateTime timestamp = DateTime.Now; AccountState accountState1 = new AccountState(1, 2, 123.45, timestamp, false, repositoryBag); AccountState accountState1_copy = new AccountState(1, 2, 123.45, timestamp, false, repositoryBag); AccountState accountState3 = new AccountState(2, 4, 246.9, timestamp, true, repositoryBag); Assert.Equal(accountState1.GetHashCode(), accountState1_copy.GetHashCode()); Assert.NotEqual(accountState1.GetHashCode(), accountState3.GetHashCode()); }