By tag: testing
0
kicks
Understanding Mock and frameworks – Part 1 of N
This series highlights the concept of mocking, preparing your application, using mocking frameworks, comparing them and ensuring that your code is ‘Well-Tested and Covered’ using Rhino Mocks, Moq, NSubstitute
0
kicks
Writing Unit Tests for an ASP.NET MVC Action Method that handles Ajax
Demonstrate how to write unit tests for an ASP.NET MVC action method, which handles both Ajax request and normal HTTP Request.
0
kicks
Integration Testing FTP Connections in .Net
When writing testable code your first port of call is often to abstract any dependencies and make them easy to mock. This is the same for any of your codebase that talks to FTP servers. Testing the way your code behaves under real world conditions makes integration tests important regardless of abst...
0
kicks
.NET Testing Frameworks
Most of my testing experience has been with MSTest, NUnit and Selenium and I feel this is an area I need to explore in more depth, so I thought I'd put the question to my colleagues and readers: What testing frameworks do you prefer and why?
0
kicks
Revise and Refactor
Test-driven development contains a standard sequence of events that should occur as you code. This is known as Red – Green – Refactor, and it correlates to the writing process of Outline – Draft – Revise.
0
kicks
RESTful Client Unit Testing with NancyFX
An interesting approach to verifying the behavior of a RESTful client by using the NancyFX server to stub out the target service. A brief description of the problem with lots of sample code is provided.
0
kicks
Windows 8 Metro WinJS Unit Testing: Down the Rabbit Hole
A deeper look at using dependency injection and MVVM to unit test Windows 8 WinJS Metro apps.
0
kicks
The future of isolation frameworks and how moq isn't it
In a past post, Roy Osherove hinted that Moq is not a part of the future of isolation frameworks. In this post he explains why. He gives a quick summary of his reasons, followed up with a more in-depth video and write-up.
0
kicks
Learning a new mocking framework what you should learn
A summary of questions that should be answered when looking at an unit testing framework for the first time.
0
kicks
Shim constructors to isolate “Future Objects”
This is a third part of a series of articles about the new Unit Test isolating capabilities in Visual Studio 2012. In this post I show how you can isolate creation of objects, to "inject" test double (mock or stub) when the System Under Test directly calls Constructor of objects they depen...
0
kicks
Noninvasive Unit Testing in ASP.NET MVC4 – A Microsoft Fakes Deep Dive
A lot of today’s unit testing technologies require significant invasive code changes in order to unit test appropriately. In this post Microsoft Fakes in VS11 is used to apply noninvasive testing techniques to test a default "Internet Application" MVC 4 project making absolutely no code ch...
0
kicks
Shim and InstanceBehavior fallthrough to isolate part of the SUT
Thanks to the new Shim Library in Visual Studio11 it is possible to isolate part of the SUT to write Unit Test for difficult to test classes.
0
kicks
Using Shims in Visual Studio 11 to test untestable code.
New upcoming version of Visual Studio, codename VisualStudio11 contains a library to isolate call to static and non-virtual function to simply testing of classes written without unit testing in mind.