public void ValueOnUpperBound_ReturnsCorrectUrl()
{
var t = new UpdateVersionTable();
t.TextContentsOfTable = @"# the format is min,max,url
0.0.0,1.1.999, http://first.com/first
2.1.1,2.9.999, http://second.com/second
3.2.2,3.9.999, http://third.com/third";
t.RunningVersion = Version.Parse("1.1.999");
Assert.AreEqual("http://first.com/first", t.LookupURLOfUpdate().URL);
t.RunningVersion = Version.Parse("2.9.999");
Assert.AreEqual("http://second.com/second", t.LookupURLOfUpdate().URL);
t.RunningVersion = Version.Parse("3.9.999");
Assert.AreEqual("http://third.com/third", t.LookupURLOfUpdate().URL);
}