예제 #1
0
        public GrowlDisplay(IGrowlWrapper growl)
        {
            string workingDirectory = AppDomain.CurrentDomain.BaseDirectory;
            string iconpath         = Path.Combine(workingDirectory, "images");

            var application = new Application(ApplicationName);
            var success     = new NotificationType(Success, "All Tests Pass")
            {
                Icon = Path.Combine(iconpath, "Green.jpg")
            };

            var fail = new NotificationType(Failed, "A Test Has Failed")
            {
                Icon = Path.Combine(iconpath, "Red.jpg")
            };

            var inconclusive = new NotificationType(Inconclusive, "The Tests Are Inconclusive")
            {
                Icon = Path.Combine(iconpath, "Yellow.jpg")
            };

            _growl = growl;
            _growl.Register(application, new NotificationType[] { success, fail, inconclusive });
        }
예제 #2
0
        public GrowlDisplay(IGrowlWrapper growl)
        {
            string workingDirectory = AppDomain.CurrentDomain.BaseDirectory;
            string iconpath = Path.Combine(workingDirectory, "images");

            var application = new Application(ApplicationName);
            var success = new NotificationType(Success, "All Tests Pass")
                              {
                                  Icon = Path.Combine(iconpath, "Green.jpg")
                              };

            var fail = new NotificationType(Failed, "A Test Has Failed")
                           {
                               Icon = Path.Combine(iconpath, "Red.jpg")
                           };

            var inconclusive = new NotificationType(Inconclusive, "The Tests Are Inconclusive")
                                   {
                                       Icon = Path.Combine(iconpath, "Yellow.jpg")
                                   };

            _growl = growl;
            _growl.Register(application,new NotificationType[]{success,fail,inconclusive});
        }