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)); }
public void TestUpMinor(string from, string want) { string got = BumpVersion.UpMinor(from); Assert.Equal(want, got); }