//test6 private string Test6() { m_AuthServer = new MockAuthServer(); string out_token; Message m6 = new Message(); m6.TestID = 6; AuthResult result4 = m_AuthServer.Authenticate("team1", "clientapi", out out_token); if (!result4.valid || out_token != "MockToken") { m6.Passed = false; m6.Msg = "AuthServer.Authenticate test2 fails"; } else { m6.Passed = true; m6.Msg = "AuthServer.Authenticate test2 succeeds"; } return m6.ToString(); }
//test5 private string Test5() { m_AuthServer = new MockAuthServer(); string out_token; Message m5 = new Message(); m5.TestID = 5; AuthResult result3 = m_AuthServer.Authenticate("hshen", "hshen", out out_token); if (result3.valid) { m5.Passed = false; m5.Msg = "AuthServer.Authenticate test1 fails"; } else { m5.Passed = true; m5.Msg = "AuthServer.Authenticate test1 succeeds"; } return m5.ToString(); }