예제 #1
0
        public void Should_CreateInfoNotification_When_StateChangeFromNoneToOk()
        {
            var build = new BuildTest
            {
                State = State.Ok
            };

            var notification = build.CreateNotification();

            AssertThatNotificationIsInfo(notification);
        }
예제 #2
0
        public void Should_CreateInfoNotification_When_StateChangeFromQueuedToRunning()
        {
            var build = new BuildTest
            {
                State = State.Queued
            };

            build.State = State.Running;

            var notification = build.CreateNotification();

            AssertThatNotificationIsInfo(notification);
        }
예제 #3
0
        public void Should_CreateInfoNotification_When_StateChangeFromQueuedToOk()
        {
            var build = new BuildTest
            {
                State = State.Queued
            };

            build.State = State.Ok;

            var notification = build.CreateNotification();

            Assert.IsNotNull(notification);
            Assert.AreEqual(NotificationIcon.Info, notification.Icon);
        }