mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-05 21:01:28 +00:00
Fix SlotTests failure
This commit is contained in:
parent
2b1cc62e4d
commit
e5ee045838
1 changed files with 6 additions and 2 deletions
|
@ -46,8 +46,12 @@ namespace LBPUnion.ProjectLighthouse.Tests
|
||||||
// XmlSerializer serializer = new(typeof(Slot));
|
// XmlSerializer serializer = new(typeof(Slot));
|
||||||
// Slot slot = (Slot)serializer.Deserialize(new StringReader(bodyString));
|
// Slot slot = (Slot)serializer.Deserialize(new StringReader(bodyString));
|
||||||
|
|
||||||
string respA = await this.Client.GetStringAsync("LITTLEBIGPLANETPS3_XML/slots/by?u=unitTestUser0");
|
LoginResult loginResult = await this.Authenticate();
|
||||||
string respB = await this.Client.GetStringAsync("LITTLEBIGPLANETPS3_XML/slots/by?u=unitTestUser1");
|
|
||||||
|
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.NotEqual(respA, respB);
|
||||||
Assert.DoesNotContain(respA, "slotB");
|
Assert.DoesNotContain(respA, "slotB");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue