Example #1
0
        public void GenerateVersion_With_MMdd()
        {
            DatetimeLabeller   target            = new DatetimeLabeller();  // TODO: Initialize to an appropriate value
            IIntegrationResult integrationResult = new IntegrationResult(); // TODO: Initialize to an appropriate value

            target.DateTimeFormat = "MMdd";
            string expected = "1.0.0427.1";
            string actual;

            actual = target.Generate(integrationResult);
            Assert.AreEqual(expected, actual);
            TestContext.WriteLine("Actual Build Numberb: " + actual);
        }
Example #2
0
        public void GenerateVersion_With_Provided()
        {
            DatetimeLabeller   target            = new DatetimeLabeller();  // TODO: Initialize to an appropriate value
            IIntegrationResult integrationResult = new IntegrationResult(); // TODO: Initialize to an appropriate value

            target.Major          = 3;
            target.Minor          = 1;
            target.Build          = "0";
            target.Prefix         = "Prod-";
            target.DateTimeFormat = "MMdd";
            string expected = "Prod-3.1.0.1";
            string actual;

            actual = target.Generate(integrationResult);
            Assert.AreEqual(expected, actual);
            TestContext.WriteLine("Actual Build Numberb: " + actual);
        }