public void Loginによるログイン処理_成功(string user, string ip) { //setUp var expected = true; //exercise var actual = sut.Login(user, new Ip(ip)); //verify Assert.That(actual, Is.EqualTo(expected)); }
public void 事前にログインが有る場合_許可される() { //setUp var sut = new PopBeforeSmtp(true, 10, _mailBox); var ip = new Ip("192.168.0.1"); var expected = true; _mailBox.Login("user1", ip); _mailBox.Logout("user1"); //exercise var actual = sut.Auth(ip); //verify Assert.That(actual, Is.EqualTo(expected)); }