BloomTests.UpdateVersionTableTests.ValueOnInMiddle_ReturnsCorrectUrl C# (CSharp) Method

ValueOnInMiddle_ReturnsCorrectUrl() private method

private ValueOnInMiddle_ReturnsCorrectUrl ( ) : void
return void
        public void ValueOnInMiddle_ReturnsCorrectUrl()
        {
            var t = new UpdateVersionTable();
            t.TextContentsOfTable = @"# the format is min,max,url
                                                        1.0.0,1.0.50, http://first.com/first
                                                        1.0.50,2.1.99, http://second.com/second
                                                        3.0.0,3.9.999, http://third.com/third";

            t.RunningVersion = Version.Parse("1.0.40");
            Assert.AreEqual("http://first.com/first", t.LookupURLOfUpdate().URL);
            t.RunningVersion = Version.Parse("1.1.0");
            Assert.AreEqual("http://second.com/second", t.LookupURLOfUpdate().URL);
            t.RunningVersion = Version.Parse("3.0.1");
            Assert.AreEqual("http://third.com/third", t.LookupURLOfUpdate().URL);
        }