About Me
I'm a Software Engineer specialized in Microsoft technology with a special interest for Silverlight. Since 2007 I work for Rubicon as a Software Engineer.
|
Posts Tagged ‘Unit Testing’
|
|
|
Mark Monster
August 9th, 2008
.NET, Mocking, Open Source, Silverlight, Technology, Unit Testing
|
|
Some time ago I sort of complained there’s no Mocking Framework available for Silverlight. This has a lot to do with the not being available Castle’s DynamicProxy for Silverlight. So I did some analyzing on DynamicProxy if it’s possible to make it work under Silverlight.
Read the rest of this entry »
|
|
|
Mark Monster
August 3rd, 2008
.NET, LINQ, Patterns, Silverlight, Technology, Unit Testing
|
|
I did show it in my fourth article about Silverlight Networking, using a functionpointer in a call instead of a return type. This was to get the JavascriptWebResponse back asynchronous.
Working with the Silverlight Networking stack is only possible asynchronously. So we need to provide a callback function that get’s called after execution. All the Silverlight examples I’ve seen have this callback function in the User Interface. But what about all the classes that have their own responsibility that normally live in between the User Interface and the actual call to the Networking stack? I’m sure I don’t want to call the Networking stack right from the UI. I normally have at least one class between the UI and the Network call that does some transformation, preparation and other things. Let’s have a solution that I designed for Silverlight but also works within the full CLR.
Read the rest of this entry »
|
|
|
Mark Monster
July 28th, 2008
.NET, Mocking, Silverlight, Technology, Unit Testing
|
|
There are quite some Mocking frameworks available. But sadly no one is ported to Silverlight, yet. I know about the porting of NUnit to Silverlight, but while working on Unit tests for the "Silverlight Networking through Javascript" library I found out there’s no Mocking framework yet to support the Silverlight runtime.
I would like to see some support for Silverlight from either Moq or Rhino Mocks. That’s because I like the way those Mocking frameworks work. I think they both make use of Castle’s DynamicProxy, so that’s another thing that first needs to become Silverlight enabled.
I’m sure more people thought about Mocking in a Silverlight runtime but didn’t find a solution too. I’m interested if anyone started to port one of the above Mocking frameworks to Silverlight. I’m not even totally sure if it’s possible but at least a part of Reflection.Emit exists.
What are anyone’s thoughts about Mocking in Silverlight?
|
|
|
Mark Monster
October 21st, 2007
Books, Mocking, Technology, Unit Testing
|
|
Some time ago I did the technical review of the Manning Book Test Driven by Lasse Koskela. The book is available since October 10th.
The book is devided in three rough parts: Part 1, A TDD primer; Part 2, Applying TDD to specific technologies; Part 3, Building products with acceptance TDD.
Part 1, A TDD primer: This part is about Testing in general and covers refactoring and patterns as well. Everything is written with Test Driven Development in mind. So don’t expect all possible refactorings and patterns covered here.
Part 2, Applying TDD to specific technologies: This part covers testing on specific technologies. Where the first part can help people start testing, the second part will help people continue testing even if the more complicated tests need to be written. Specially complex testing on Web components, data access, etc.
Part 3, Building products with acceptance TDD: The last part covers more on acceptance testing. I haven’t got any experience with automated acceptance testing but this part covers it quite well.
Although this book has some influence from the Java world almost everything can be applied within other technology worlds as well, like .NET, Ruby and PHP. I like this book and will use it every once in a while to keep myself focused.
|
|
|
Mark Monster
August 31st, 2007
Books, Patterns, Technology, Unit Testing
|
|
Some time ago I did the technical proofreading of the Manning book PHP in Action by Dagfinn Reiersol. The book is available since the end of June.
During the technical proofreading and even before this during the normal review, I began to really like this book. It’s about building PHP applications, but doesn’t stop after “Hello, world!”. Not it doesn’t stop there at all, PHP in Action covers a lot of practices for building more enterprise like PHP applications and also covers design patterns.
Although I’m not longer a active PHP developer I really thing that every self-respecting php-developer should have this book on his bookshelf.
|
|
|
Mark Monster
July 30th, 2007
.NET, Mocking, Technology, Unit Testing
|
|
Mocking with Rhino Mocks: Expecting a method not to be called
This morning I thought about trying out some Mocking with Rhino Mocks. First of all I was having some little trouble of testing method’s that returned void. Oren Eini suggested somewhere to make use of method chaining, so I changed it to use method chaining.
So what’s next? Expecting a method not to be called. For example the situation on line 12: I expect the WriteLog method with parameter EventLogEntryType.SuccesAudit not to be called. I think the test I wrote should work.
Read the rest of this entry »
|
|