BloomTests.UpdateVersionTableTests.ServerAddressIsBogus_ErrorIsCorrect C# (CSharp) Method

ServerAddressIsBogus_ErrorIsCorrect() private method

private ServerAddressIsBogus_ErrorIsCorrect ( ) : void
return void
        public void ServerAddressIsBogus_ErrorIsCorrect()
        {
            var t = new UpdateVersionTable {URLOfTable = "http://notthere7blah/foo.txt"};
            //the jenkins server gets a ProtocolError, while my desktop gets a NameResolutionFailure
            var e = t.LookupURLOfUpdate().Error.Status;
            Assert.IsTrue(e  == WebExceptionStatus.NameResolutionFailure || e == WebExceptionStatus.ProtocolError );
        }