<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Testing Against The Current Time</title><link>http://blogs.msdn.com/ploeh/archive/2007/05/12/TestingAgainstTheCurrentTime.aspx</link><description>This is the third in a small series of posts about testing against non-determinism. In this installation, I'm going to cover how to deal with the current time or date. If you have logic that is dependent of the current time or date, test results will</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>ploeh blog : Testing Against Non-Determinism</title><link>http://blogs.msdn.com/ploeh/archive/2007/05/12/TestingAgainstTheCurrentTime.aspx#2576431</link><pubDate>Sat, 12 May 2007 21:47:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2576431</guid><dc:creator>ploeh blog : Testing Against Non-Determinism</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/ploeh/archive/2007/05/11/TestingAgainstNonDeterminism.aspx"&gt;http://blogs.msdn.com/ploeh/archive/2007/05/11/TestingAgainstNonDeterminism.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Testing Against Guids</title><link>http://blogs.msdn.com/ploeh/archive/2007/05/12/TestingAgainstTheCurrentTime.aspx#2576447</link><pubDate>Sat, 12 May 2007 21:47:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2576447</guid><dc:creator>ploeh blog</dc:creator><description>&lt;p&gt;This is the second in a small series of posts about testing against non-determinism. In this installation,&lt;/p&gt;
</description></item><item><title>re: Testing Against The Current Time</title><link>http://blogs.msdn.com/ploeh/archive/2007/05/12/TestingAgainstTheCurrentTime.aspx#2603580</link><pubDate>Sun, 13 May 2007 20:19:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2603580</guid><dc:creator>kost</dc:creator><description>&lt;p&gt;If you do not take the time zone into consideration, CheckMonday() may not return the same result if run on two different computers.&lt;/p&gt;
&lt;p&gt;While UTC is good for log files, I would recommend a time zone that takes account of daylight saving times; otherwise you will have to change any reconfiguration twice a year.&lt;/p&gt;
&lt;p&gt;Kost&lt;/p&gt;</description></item><item><title>re: Testing Against The Current Time</title><link>http://blogs.msdn.com/ploeh/archive/2007/05/12/TestingAgainstTheCurrentTime.aspx#2620087</link><pubDate>Mon, 14 May 2007 11:06:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2620087</guid><dc:creator>ploeh</dc:creator><description>&lt;p&gt;Hi Kost :)&lt;/p&gt;
&lt;p&gt;Thank you for your comment. I'm not sure I understand why the CheckMonday test may yield a different result on different machines.&lt;/p&gt;
&lt;p&gt;No matter the time zone of the machine, the injected date is May 7th, 2007. Since the test is calling the test target via an in-process call, the time zone of the test code is always the same as the time zone of the test target.&lt;/p&gt;
&lt;p&gt;Thus, I think May 7th, 2007 will always be May 7th, 2007, or am I missing your point?&lt;/p&gt;
</description></item><item><title>Testing Against The Passage of Time</title><link>http://blogs.msdn.com/ploeh/archive/2007/05/12/TestingAgainstTheCurrentTime.aspx#2629012</link><pubDate>Mon, 14 May 2007 20:08:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2629012</guid><dc:creator>ploeh blog</dc:creator><description>&lt;p&gt;This is the fourth in a small series of posts about testing against non-determinism. In this installation,&lt;/p&gt;
</description></item></channel></rss>