public void Register_No_Exceptions() { var server = new PakeServer(); var client = new PakeClient(server); client.Register("*****@*****.**", "foo bar non"); }
public void Register_Null_Password_Throws() { var server = new PakeServer(); var client = new PakeClient(server); Assert.ThrowsAny <Exception>( () => client.Register("*****@*****.**", null !)); }
public void Register_Null_Username_Throws() { var server = new PakeServer(); var client = new PakeClient(server); Assert.ThrowsAny <Exception>( () => client.Register(null !, null !)); }
public void Start_Session() { var I = "*****@*****.**"; var P = "foo bar non"; var server = new PakeServer(); var client = new PakeClient(server); client.Register(I, P); client.StartSession(I, P); }
public void Start_Session_With_Bad_Password() { var I = "*****@*****.**"; var P = "foo bar non"; var server = new PakeServer(); var client = new PakeClient(server); client.Register(I, P); Assert.ThrowsAny <Exception>( () => client.StartSession(I, "bad password")); }