Ejemplo n.º 1
0
        public void ToSnapshotFromNullWithPositionTest()
        {
            var version = new ComponentVersion(null);

            Assert.Throws <InvalidOperationException>(delegate { version.Operations().ToSnapshotWithVersionIncrement(1); });
        }
Ejemplo n.º 2
0
        public void ToSnapshotFromReleaseWithWrongPositionTest()
        {
            var version = new ComponentVersion("1.0.0");

            Assert.Throws <InvalidOperationException>(delegate { version.Operations().ToSnapshotWithVersionIncrement(4); });
        }
Ejemplo n.º 3
0
        public void ToSnapshotFromSnapshotTest()
        {
            var version = new ComponentVersion("1.0.0-SNAPSHOT");

            Assert.Throws <InvalidOperationException>(delegate { version.Operations().ToSnapshotWithVersionIncrement(); });
        }