public void Authenticate_Failure() { var api = new ProsperApi("wrong", "credentials", "https://api.stg.circleone.com/v1/"); var success = api.AuthenticateAsync().Result; Assert.IsFalse(success, "Authentication should have failed, but it was successful"); }
public void Contructor_Null_Username() { ArgumentException e = null; try { var a = new ProsperApi("", null, ""); } catch (ArgumentException ex) { e = ex; } Assert.IsNotNull(e, "An exception should have been thrown for null / empty credentials"); }