AuctionSniper.Integration.Tests.Xmpp.XmppConnectionTests.LoginWithInvalidUserId C# (CSharp) Method

LoginWithInvalidUserId() private method

private LoginWithInvalidUserId ( ) : void
return void
        public void LoginWithInvalidUserId()
        {
            try
            {
                var connection = new XmppChatClient(new Jid("invalid", XMPP_HOST, "auction"), "pass");
                connection.Login();
                Assert.Fail("should have thrown xmppexection when loggin with invalid user id");
            }

            catch(XmppException e) {Assert.That(e.Message.Contains("Auth error"));}
        }