Пример #1
0
        /// <summary>simple test JobPriorityChangeEvent and JobPriorityChange</summary>
        /// <exception cref="System.Exception"/>
        public virtual void TestJobPriorityChange()
        {
            JobID jid = new JobID("001", 1);
            JobPriorityChangeEvent test = new JobPriorityChangeEvent(jid, JobPriority.Low);

            NUnit.Framework.Assert.AreEqual(test.GetJobId().ToString(), jid.ToString());
            NUnit.Framework.Assert.AreEqual(test.GetPriority(), JobPriority.Low);
        }
Пример #2
0
 private void HandleJobPriorityChangeEvent(JobPriorityChangeEvent @event)
 {
     info.priority = @event.GetPriority();
 }