Ejemplo n.º 1
0
 public void TestErrorIfInvalidVersionSupplied(string from)
 {
     _ = Assert.Throws <ArgumentException>(() => _ = BumpVersion.UpMajor(from));
     _ = Assert.Throws <ArgumentException>(() => _ = BumpVersion.UpMinor(from));
     _ = Assert.Throws <ArgumentException>(() => _ = BumpVersion.UpPatch(from));
     _ = Assert.Throws <ArgumentException>(() => _ = BumpVersion.UpBuild(from));
     _ = Assert.Throws <ArgumentException>(() => _ = BumpVersion.Format(from));
 }
Ejemplo n.º 2
0
        public void TestUpMinor(string from, string want)
        {
            string got = BumpVersion.UpMinor(from);

            Assert.Equal(want, got);
        }