public override void TearDown() { if (this.user != null) { user.Delete(); } base.TearDown(); }
public void Test_0210_Delete_Server_error() { this.LogIn(); KiiUser user = KiiUser.CurrentUser; // set response client.AddResponse(new CloudException(400, "{}")); user.Delete(); }
public void Test_0200_Delete() { this.LogIn(); KiiUser user = KiiUser.CurrentUser; // set response client.AddResponse(204, ""); user.Delete(); // Assertion Assert.IsNull(KiiUser.CurrentUser); }
public void Test_0210_Delete_Server_error() { this.LogIn(); KiiUser user = KiiUser.CurrentUser; // set response client.AddResponse(new CloudException(400, "{}")); bool done = false; Exception exception = null; user.Delete((Exception e) => { done = true; exception = e; }); Assert.IsTrue(done); Assert.IsNotNull(exception); Assert.IsTrue(exception is CloudException); }
public void Test_0200_Delete() { this.LogIn(); KiiUser user = KiiUser.CurrentUser; // set response client.AddResponse(204, ""); bool done = false; Exception exception = null; user.Delete((Exception e) => { done = true; exception = e; }); Assert.IsTrue(done); Assert.IsNull(exception); // Assertion Assert.IsNull(KiiUser.CurrentUser); }
public override void TearDown() { testUser.Delete(); base.TearDown(); }
public static void DeleteUser(KiiUser user) { user.Delete(); }
public void Step03_Cleanup() { KiiUser user = KiiUser.LogIn(this.realPhoneNumber, this.realNewPassword); user.Delete(); }