unsafe public void Packet80_LoginRequest_Test() { Accounting.Configure(); int accountid1 = TestSuccess(TestUserName1); int accountid2 = TestSuccess(TestUserName2); Assert.AreNotEqual(accountid1, accountid2, "Two consecutively created accounts have the same account id."); int loginresult1 = TestSuccess(TestUserName1); Assert.AreEqual(accountid1, loginresult1, "Login did not result in correct accountid for account {0}", TestUserName1); int loginresult2 = TestSuccess(TestUserName2); Assert.AreEqual(accountid2, loginresult2, "Login did not result in correct accountid for account {0}", TestUserName2); TestFail(TestUserName1, null, ALRReason.BadPass); TestFail(null, null, ALRReason.BadPass); TestFail(null, TestUserPass, ALRReason.BadPass); TestFail(TestUserName2, "wrongpassword", ALRReason.BadPass); }