From d2238e2ea9bceb3bc0d3f923f2ff774ddb1f2113 Mon Sep 17 00:00:00 2001 From: "Konrad M. Kruczynski" Date: Fri, 6 May 2011 16:09:27 +0200 Subject: [PATCH] Added test for the fix related with bug #677265 --- .../DispatcherTimerTest.cs | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 mcs/class/WindowsBase/Test/System.Windows.Threading/DispatcherTimerTest.cs diff --git a/mcs/class/WindowsBase/Test/System.Windows.Threading/DispatcherTimerTest.cs b/mcs/class/WindowsBase/Test/System.Windows.Threading/DispatcherTimerTest.cs new file mode 100644 index 00000000000..fc60260ca6d --- /dev/null +++ b/mcs/class/WindowsBase/Test/System.Windows.Threading/DispatcherTimerTest.cs @@ -0,0 +1,31 @@ +// +// Tests for System.Windows.Threading.DispatcherTimer +// +// Author: +// Konrad M. Kruczynski +// + +using NUnit.Framework; +using System; +using System.Windows.Threading; + +namespace MonoTests.System.Windows.Threading +{ + + [TestFixture] + public class DispatcherTimerTest { + + [Test] + public void IntervalSettingTest () + { + var timer = new DispatcherTimer (); + var second = new TimeSpan (0, 0, 0, 1); + timer.Interval = second; + var timerInterval = timer.Interval; + Assert.AreEqual (second, timerInterval, + "Interval given to timer was not preserved."); + } + + } +} + -- 2.25.1