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 TaskTest() { BumpVersion t = new BumpVersion { AssemblyInfoPath = assemblyInfoPath }; t.BuildEngine = new DummyBuildEngine(); bool result = t.Execute(); Assert.IsTrue(result, "Execution failed"); }
public void TestFormat(string from, string want) { string got = BumpVersion.Format(from); Assert.Equal(want, got); }
public void TestUpBuild(string from, string want) { string got = BumpVersion.UpBuild(from); Assert.Equal(want, got); }