public void ValueComparesBiggerByName() { var sviB1 = new SemVerInfo("parent-1.2.3-rc.4"); var sviB2 = new SemVerInfo("parent-1.2.3-rc.4"); var svi1 = new SemVerInfo(sviB1.NameSemVer, "name-21.2.234"); var svi2 = new SemVerInfo(sviB2.NameSemVer, "lame-21.2.234"); var c1 = svi1.CompareTo(svi2); Assert.Equal(c1, 1); }
public void ValueComparesLowerByNameSemVer() { var sviB1 = new SemVerInfo("parent-1.2.3-rc.4"); var sviB2 = new SemVerInfo("parent-1.2.3-rc.4"); var svi1 = new SemVerInfo(sviB1.NameSemVer, "name-21.2.233-beta.1"); var svi2 = new SemVerInfo(sviB2.NameSemVer, "name-21.2.234-beta.1"); var c1 = svi1.CompareTo(svi2); Assert.Equal(c1, -1); }