Fix tests

This commit is contained in:
jvyden 2021-10-26 17:27:59 -04:00
parent e4f764784e
commit 24b712cd15
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
4 changed files with 31 additions and 7 deletions

View file

@ -23,10 +23,12 @@ namespace LBPUnion.ProjectLighthouse.Tests {
public async Task<HttpResponseMessage> AuthenticateResponse(int number = 0) {
const char nullChar = (char)0x00;
const char sepChar = (char)0x20;
const string username = "unitTestUser";
string stringContent = $"{nullChar}{sepChar}{username}{number}{nullChar}";
string nullString = "";
for(int i = 0; i < 80; i++) nullString += nullChar;
string stringContent = $"{nullString}{username}{number}{nullChar}";
HttpResponseMessage response = await this.Client.PostAsync("/LITTLEBIGPLANETPS3_XML/login", new StringContent(stringContent));
return response;