Beispiel #1
0
        public void Parse_ValidDatesAndStatus()
        {
            var actual = BuildStatus.Parse(new [] { "634609764610000000", "634637449220000000", "1", "jshimpty" });

            Assert.AreEqual(new DateTime(2012, 1, 1, 1, 1, 1), actual.StartedTime);
            Assert.AreEqual(new DateTime(2012, 2, 2, 2, 2, 2), actual.FinishedTime);
            Assert.AreEqual("jshimpty", actual.RequestedBy);
            Assert.AreEqual(BuildStatusEnum.Working, actual.BuildStatusEnum);
        }
Beispiel #2
0
        public void Parse_NullEndDate()
        {
            var actual = BuildStatus.Parse(new [] { "634609764610000000", "", "1", "jshimpty" });

            Assert.AreEqual(null, actual.FinishedTime);
        }
Beispiel #3
0
        public void Parse_InvalidDate()
        {
            var actual = BuildStatus.Parse(new [] { "63460976461000000Z", "", "1", "jshimpty" });

            Assert.AreEqual(null, actual);
        }