mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-14 22:02:26 +00:00
Fix tests
This commit is contained in:
parent
474556b8a6
commit
4208513978
4 changed files with 14 additions and 15 deletions
|
@ -22,13 +22,9 @@ namespace LBPUnion.ProjectLighthouse.Tests {
|
|||
}
|
||||
|
||||
public async Task<HttpResponseMessage> AuthenticateResponse(int number = 0) {
|
||||
const char nullChar = (char)0x00;
|
||||
const string username = "unitTestUser";
|
||||
|
||||
string nullString = "";
|
||||
for(int i = 0; i < 80; i++) nullString += nullChar;
|
||||
|
||||
string stringContent = $"{nullString}{username}{number}{nullChar}";
|
||||
string stringContent = $"{LoginData.UsernamePrefix}{username}{number}{(char)0x00}";
|
||||
|
||||
HttpResponseMessage response = await this.Client.PostAsync("/LITTLEBIGPLANETPS3_XML/login", new StringContent(stringContent));
|
||||
return response;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue