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 TestFormat(string from, string want) { string got = BumpVersion.Format(from); Assert.Equal(want, got); }