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

            var notification = build.CreateNotification();

            AssertThatNotificationIsInfo(notification);
        }
Exemple #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);
        }
Exemple #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);
        }
 private void Start()
 {
     buildTest = FindObjectOfType <BuildTest>();
 }