BloomTests.UpdateVersionTableTests.LookupURLOfUpdate_TooFewCommas_LogsErrorGivesNoURL C# (CSharp) Method

LookupURLOfUpdate_TooFewCommas_LogsErrorGivesNoURL() private method

        public void LookupURLOfUpdate_TooFewCommas_LogsErrorGivesNoURL()
        {
            var t = new UpdateVersionTable();
            t.TextContentsOfTable = @"0.0.0, http://first.com/first"; // too few commas
            t.RunningVersion = Version.Parse("3.2.0");
            var lookupResult = t.LookupURLOfUpdate();
            Assert.That(lookupResult.URL, Is.Null.Or.Empty);
            Assert.IsTrue(lookupResult.Error.Message.StartsWith("Could not parse a line of the UpdateVersionTable"));
        }