<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>CThru and SilverUnit</title><link>http://cthru.codeplex.com/project/feeds/rss</link><description>C-Thru is an AOP interception framework based on the Typemock Open-AOP API.   It allows creating interception and isolation frameworks for logging, testing and many other things very simply.      Cthru-Silverlight&amp;#58; allows true unit testing in Silverlight.</description><item><title>Source code checked in, #79962</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/79962</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:14:48 GMT</pubDate><guid isPermaLink="false">Source code checked in, #79962 20121001091448P</guid></item><item><title>Source code checked in, #79961</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/79961</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:08:39 GMT</pubDate><guid isPermaLink="false">Source code checked in, #79961 20121001090839P</guid></item><item><title>New Post: DateTime.Now not getting intercepted</title><link>http://cthru.codeplex.com/discussions/387979</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Sorry, but that's better asked at the Typemock forums as well. This is related to some Isolator internals, which I don't understand at all.&lt;/p&gt;&lt;/div&gt;</description><author>ulu</author><pubDate>Sat, 28 Jul 2012 06:27:45 GMT</pubDate><guid isPermaLink="false">New Post: DateTime.Now not getting intercepted 20120728062745A</guid></item><item><title>New Post: DateTime.Now not getting intercepted</title><link>http://cthru.codeplex.com/discussions/387979</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I clarified this with them, thanks. I have another issue though. My application uses Spring .net and when I added CThru to it, it stopped working. In the typemock logs, I see it failing silently at this point&lt;/p&gt;
&lt;p&gt;Exposing internals for module 122F1160Loaded: -&amp;gt;C:\Program Files (x86)\ITG\Custom\Active\bin\Spring.Core.dll&lt;/p&gt;
&lt;p&gt;Is it not possible to have both enabled?&lt;/p&gt;&lt;/div&gt;</description><author>SamwellTarly</author><pubDate>Fri, 27 Jul 2012 19:26:39 GMT</pubDate><guid isPermaLink="false">New Post: DateTime.Now not getting intercepted 20120727072639P</guid></item><item><title>New Post: DateTime.Now not getting intercepted</title><link>http://cthru.codeplex.com/discussions/387979</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;That better be asked at the &lt;a href="http://forums.typemock.com/index.php"&gt;Typemock Forums&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</description><author>ulu</author><pubDate>Thu, 26 Jul 2012 18:38:37 GMT</pubDate><guid isPermaLink="false">New Post: DateTime.Now not getting intercepted 20120726063837P</guid></item><item><title>New Post: DateTime.Now not getting intercepted</title><link>http://cthru.codeplex.com/discussions/387979</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I managed to get it to run correctly, but I had to add the [TextFixture] attribute to the class and [Test] attribute to the program. Also, it only works correctly when i run it through visual studio, when I run it via the TMockRunner.exe, the datetime.now property does not get intercepted. Is there any way to fix that? I am running Isolator V7.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</description><author>SamwellTarly</author><pubDate>Thu, 26 Jul 2012 18:19:02 GMT</pubDate><guid isPermaLink="false">New Post: DateTime.Now not getting intercepted 20120726061902P</guid></item><item><title>New Post: DateTime.Now not getting intercepted</title><link>http://cthru.codeplex.com/discussions/387979</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;No it doesn't matter.&lt;/p&gt;
&lt;p&gt;What do you have in your output when you run my test? Here's what I get:&lt;/p&gt;
&lt;div class="logStreamBody" style="padding-left: 30px;"&gt;TypeMock.Interceptors.InterceptDateTime.get_Now()&lt;br /&gt;01.01.0001 0:00:00&lt;/div&gt;
&lt;div class="logStreamBody"&gt;&lt;/div&gt;
&lt;div class="logStreamBody"&gt;You can see that it is actually the InterceptDateTime object that is intercepted.&lt;/div&gt;
&lt;div class="logStreamBody"&gt;&lt;/div&gt;
&lt;div class="logStreamBody"&gt;What's your Isolator version?&lt;/div&gt;&lt;/div&gt;</description><author>ulu</author><pubDate>Thu, 26 Jul 2012 18:10:46 GMT</pubDate><guid isPermaLink="false">New Post: DateTime.Now not getting intercepted 20120726061046P</guid></item><item><title>New Post: DateTime.Now not getting intercepted</title><link>http://cthru.codeplex.com/discussions/387979</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I tried running your code but I'm having the same issue. The DateTime.Now value does not get overridden..&lt;/p&gt;
&lt;p&gt;I put a writeline in the ShouldIntercept method in my AspectClass and I do not even see the DateTime.Now property being intercepted there. This is the output&lt;/p&gt;
&lt;p&gt;CThru.BuiltInAspects.MissingMethodAspect .ctor&lt;br /&gt;CThru.Aspect .ctor&lt;br /&gt;CThru.CThruEngine AddAspect&lt;br /&gt;CThru.CThruEngine GetUniqueKey&lt;br /&gt;CThru.CThruEngine AddAspect&lt;br /&gt;CThru.CThruEngine get_Verbose&lt;br /&gt;CThru.CThruEngine+AspectHandler .ctor&lt;br /&gt;CThru.CThruEngine add_DuringConstructorCall&lt;br /&gt;CThru.CThruEngine add_DuringConstructorCall&lt;br /&gt;CThru.CThruEngine add_DuringStaticConstructorCall&lt;br /&gt;CThru.CThruEngine add_DuringStaticConstructorCall&lt;br /&gt;CThru.CThruEngine add_duringMethodCall&lt;br /&gt;CThru.CThruEngine add_duringMethodCall&lt;br /&gt;CThru.CThruEngine add_missingMethodCall&lt;br /&gt;CThru.CThruEngine add_missingMethodCall&lt;br /&gt;ClassLibrary1.Class1 .ctor&lt;br /&gt;ClassLibrary1.Class1 WriteTime&lt;br /&gt;System.ComponentModel.Component Finalize&lt;br /&gt;System.Diagnostics.Process Dispose&lt;br /&gt;System.ComponentModel.Component Dispose&lt;/p&gt;
&lt;p&gt;Does it matter that it is a property and not a method?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>SamwellTarly</author><pubDate>Thu, 26 Jul 2012 13:50:45 GMT</pubDate><guid isPermaLink="false">New Post: DateTime.Now not getting intercepted 20120726015045P</guid></item><item><title>New Post: DateTime.Now not getting intercepted</title><link>http://cthru.codeplex.com/discussions/387979</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you try and run the following test:&lt;/p&gt;
&lt;pre style="font-family: Consolas; font-size: 13; color: #dcdccc; background: #3f3f3f; padding: 3px;"&gt;			&lt;span style="color: #bbbbff;"&gt;CThruEngine&lt;/span&gt;&lt;span style="color: #a2cd52;"&gt;.&lt;/span&gt;&lt;span style="color: #aad7d9;"&gt;AddAspect&lt;/span&gt;(&lt;span style="font-weight: bold; color: #83bf55;"&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style="color: #bbbbff;"&gt;Stub&lt;/span&gt;(&lt;span style="color: #dfdfbf;"&gt;info&lt;/span&gt;&amp;nbsp;&lt;span style="color: #a2cd52;"&gt;=&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;span style="color: #dfdfbf;"&gt;info&lt;/span&gt;&lt;span style="color: #a2cd52;"&gt;.&lt;/span&gt;&lt;span style="color: #bfcb2e;"&gt;MethodName&lt;/span&gt;&amp;nbsp;&lt;span style="color: #a2cd52;"&gt;==&lt;/span&gt;&amp;nbsp;&lt;span style="color: #c89191;"&gt;"get_Now"&lt;/span&gt;)&lt;span style="color: #a2cd52;"&gt;.&lt;/span&gt;&lt;span style="color: #aad7d9;"&gt;Return&lt;/span&gt;(&lt;span style="font-weight: bold; color: #83bf55;"&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style="color: darkblue;"&gt;DateTime&lt;/span&gt;(&lt;span style="color: #8acccf;"&gt;1&lt;/span&gt;,&amp;nbsp;&lt;span style="color: #8acccf;"&gt;1&lt;/span&gt;,&amp;nbsp;&lt;span style="color: #8acccf;"&gt;1&lt;/span&gt;)));
			&lt;span style="color: #bbbbff;"&gt;CThruEngine&lt;/span&gt;&lt;span style="color: #a2cd52;"&gt;.&lt;/span&gt;&lt;span style="color: #aad7d9;"&gt;StartListening&lt;/span&gt;();
			&lt;span style="color: #ba96fe;"&gt;Console&lt;/span&gt;&lt;span style="color: #a2cd52;"&gt;.&lt;/span&gt;&lt;span style="color: #aad7d9;"&gt;WriteLine&lt;/span&gt;(&lt;span style="color: darkblue;"&gt;DateTime&lt;/span&gt;&lt;span style="color: #a2cd52;"&gt;.&lt;/span&gt;&lt;span style="color: #bfcb2e;"&gt;Now&lt;/span&gt;);
&lt;/pre&gt;
&lt;p&gt;Works for me with the latest CThru&lt;/p&gt;&lt;/div&gt;</description><author>ulu</author><pubDate>Thu, 26 Jul 2012 13:24:45 GMT</pubDate><guid isPermaLink="false">New Post: DateTime.Now not getting intercepted 20120726012445P</guid></item><item><title>New Post: DateTime.Now not getting intercepted</title><link>http://cthru.codeplex.com/discussions/387979</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I new to Cthru and TypeMocks. I wrote a simple application and want to intercept DateTime.Now in the application. This is the code I have:&lt;/p&gt;
&lt;p&gt;Aspect Class:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;class CThruAspectClass : Aspect&amp;nbsp;&lt;/p&gt;
&lt;p&gt;{&amp;nbsp; &amp;nbsp; public override bool ShouldIntercept(InterceptInfo info)&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;{&amp;nbsp; &amp;nbsp; &amp;nbsp; return info.MethodName == &amp;quot;get_Now&amp;quot;;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&lt;br&gt;
&amp;nbsp; &amp;nbsp; public override void MethodBehavior(DuringCallbackEventArgs e)&amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; base.MethodBehavior(e);&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; e.MethodBehavior = MethodBehaviors.ReturnsCustomValue;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; e.ReturnValueOrException = new DateTime(1, 1, 1);&amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I have this in main:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;public static void Main(string[] args)&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;{&amp;nbsp; &amp;nbsp; &amp;nbsp; var assembly = typeof(MockManager).Assembly;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; CThruAspectClass ctac = new CThruAspectClass(); &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; CThruEngine.AddAspect(ctac); &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; CThruEngine.StartListening();&lt;br&gt;
&amp;nbsp; &amp;nbsp; string path = somepath;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Class1 cl1 = new Class1();&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;cl1.WriteTime(path);&amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt;The actual DateTime.Now method gets called in WriteTime which is in a different class. I read that mscorlib types cannot be intercepted in the main method but this should be ok, right?&lt;/p&gt;
&lt;p&gt;I start up the application using TMockRunner.exe but I see that the current Date and Time get written not the overriden value. What am I doing wrong?&lt;/p&gt;
&lt;p&gt;Any help will be appreciated!&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;/div&gt;</description><author>SamwellTarly</author><pubDate>Tue, 24 Jul 2012 17:18:34 GMT</pubDate><guid isPermaLink="false">New Post: DateTime.Now not getting intercepted 20120724051834P</guid></item><item><title>Source code checked in, #76488</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/76488</link><description>Removed the postbuild event</description><author>ulu</author><pubDate>Mon, 21 May 2012 08:24:51 GMT</pubDate><guid isPermaLink="false">Source code checked in, #76488 20120521082451A</guid></item><item><title>Source code checked in, #76487</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/76487</link><description>Added Spy.cs and some tests</description><author>ulu</author><pubDate>Mon, 21 May 2012 08:15:03 GMT</pubDate><guid isPermaLink="false">Source code checked in, #76487 20120521081503A</guid></item><item><title>Source code checked in, #76486</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/76486</link><description>Fixing build script - hint path fix of Typemock.dll looks now for both reference with and without version</description><author>elishalom</author><pubDate>Mon, 21 May 2012 07:57:17 GMT</pubDate><guid isPermaLink="false">Source code checked in, #76486 20120521075717A</guid></item><item><title>Source code checked in, #76176</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/76176</link><description>Improved Stub&amp;#58; added return value, added the For factory method&amp;#13;&amp;#10;Fixed bug&amp;#58; method tracing for lambdas was throwing an NRE&amp;#13;&amp;#10;New version</description><author>ulu</author><pubDate>Thu, 10 May 2012 12:57:53 GMT</pubDate><guid isPermaLink="false">Source code checked in, #76176 20120510125753P</guid></item><item><title>Created Issue: DependencyObjectRedirects RemoveEventListener KeyNotFoundException [10159]</title><link>http://cthru.codeplex.com/workitem/10159</link><description>Exception occurs when you try to remove event handler from faked object.&lt;br /&gt;&lt;br /&gt;Cause&amp;#58;&lt;br /&gt;DependencyObjectRedirects.vb line 107&amp;#58;&lt;br /&gt;If id - 1 Then&lt;br /&gt;Should be&amp;#58;&lt;br /&gt;If id &amp;#61; -1 Then&lt;br /&gt;</description><author>Kacper_j</author><pubDate>Mon, 16 Jan 2012 16:13:53 GMT</pubDate><guid isPermaLink="false">Created Issue: DependencyObjectRedirects RemoveEventListener KeyNotFoundException [10159] 20120116041353P</guid></item><item><title>Source code checked in, #64509</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/64509</link><description>Converted build scripts to FinalBuilder 7&amp;#13;&amp;#10;Fixed Isolator paths</description><author>ohadh</author><pubDate>Wed, 27 Apr 2011 08:54:43 GMT</pubDate><guid isPermaLink="false">Source code checked in, #64509 20110427085443A</guid></item><item><title>Source code checked in, #63930</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/63930</link><description>Added lock to the CThruEngine.CallbackBeforeMethodCall method</description><author>ulu</author><pubDate>Wed, 13 Apr 2011 07:53:14 GMT</pubDate><guid isPermaLink="false">Source code checked in, #63930 20110413075314A</guid></item><item><title>Source code checked in, #59180</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/59180</link><description>added ReadMe.txt</description><author>RoyOsherove</author><pubDate>Sat, 25 Dec 2010 09:34:31 GMT</pubDate><guid isPermaLink="false">Source code checked in, #59180 20101225093431A</guid></item><item><title>Source code checked in, #59176</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/59176</link><description></description><author>RoyOsherove</author><pubDate>Sat, 25 Dec 2010 06:31:45 GMT</pubDate><guid isPermaLink="false">Source code checked in, #59176 20101225063145A</guid></item><item><title>Source code checked in, #59170</title><link>http://cthru.codeplex.com/SourceControl/changeset/changes/59170</link><description>fixed test</description><author>RoyOsherove</author><pubDate>Fri, 24 Dec 2010 22:53:57 GMT</pubDate><guid isPermaLink="false">Source code checked in, #59170 20101224105357P</guid></item></channel></rss>