Added test for the fix related with bug #677265
[mono.git] / mcs / class / WindowsBase / Test / System.Windows.Threading / DispatcherTimerTest.cs
1 //
2 // Tests for System.Windows.Threading.DispatcherTimer
3 //
4 // Author:
5 //    Konrad M. Kruczynski
6 //
7
8 using NUnit.Framework;
9 using System;
10 using System.Windows.Threading;
11
12 namespace MonoTests.System.Windows.Threading
13 {
14
15         [TestFixture]
16         public class DispatcherTimerTest {
17
18                 [Test]
19                 public void IntervalSettingTest ()
20                 {
21                         var timer = new DispatcherTimer ();
22                         var second = new TimeSpan (0, 0, 0, 1);
23                         timer.Interval = second;
24                         var timerInterval = timer.Interval;
25                         Assert.AreEqual (second, timerInterval,
26                                 "Interval given to timer was not preserved.");
27                 }
28
29         }
30 }
31