public void ToSnapshotFromNullWithPositionTest() { var version = new ComponentVersion(null); Assert.Throws <InvalidOperationException>(delegate { version.Operations().ToSnapshotWithVersionIncrement(1); }); }
public void ToSnapshotFromReleaseWithWrongPositionTest() { var version = new ComponentVersion("1.0.0"); Assert.Throws <InvalidOperationException>(delegate { version.Operations().ToSnapshotWithVersionIncrement(4); }); }
public void ToSnapshotFromSnapshotTest() { var version = new ComponentVersion("1.0.0-SNAPSHOT"); Assert.Throws <InvalidOperationException>(delegate { version.Operations().ToSnapshotWithVersionIncrement(); }); }