Esempio n. 1
0
        public void 接続失敗_アドレス間違い(InetKind inetKind, String addr)
        {
            //setUp
            var sut      = new PopClient(new Kernel(), new Ip(addr), 9110, 3, this);
            var expected = false;

            //exercise
            var actual = sut.Connect();

            //verify
            Assert.That(actual, Is.EqualTo(expected));
            Assert.That(sut.GetLastError(), Is.EqualTo("Faild in PopClient Connect()"));

            //tearDown
            sut.Dispose();
        }