Fix SlotTests failure

This commit is contained in:
jvyden 2021-11-08 13:33:51 -05:00
parent 2b1cc62e4d
commit e5ee045838
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -46,8 +46,12 @@ namespace LBPUnion.ProjectLighthouse.Tests
// XmlSerializer serializer = new(typeof(Slot));
// Slot slot = (Slot)serializer.Deserialize(new StringReader(bodyString));
string respA = await this.Client.GetStringAsync("LITTLEBIGPLANETPS3_XML/slots/by?u=unitTestUser0");
string respB = await this.Client.GetStringAsync("LITTLEBIGPLANETPS3_XML/slots/by?u=unitTestUser1");
LoginResult loginResult = await this.Authenticate();
string respA = await (await this.AuthenticatedRequest("LITTLEBIGPLANETPS3_XML/slots/by?u=unitTestUser0", loginResult.AuthTicket)).Content
.ReadAsStringAsync();
string respB = await (await this.AuthenticatedRequest("LITTLEBIGPLANETPS3_XML/slots/by?u=unitTestUser1", loginResult.AuthTicket)).Content
.ReadAsStringAsync();
Assert.NotEqual(respA, respB);
Assert.DoesNotContain(respA, "slotB");