Stories recently tagged with 'Testing'

Noninvasive Unit Testing in ASP.NET MVC4 – A Microsoft Fakes Deep Dive(www.richonsoftware.com)

submitted by czyzerczyzer(55) 10 days, 18 hours ago

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 changes at all. read more...

1 comment |category: |Views: 171

tags: another

Shim and InstanceBehavior fallthrough to isolate part of the SUT(www.codewrecks.com)

submitted by alkampferalkampfer(1873) 18 days ago

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. read more...

add a comment |category: |Views: 4

tags: another

Using Shims in Visual Studio 11 to test untestable code.(www.codewrecks.com)

submitted by alkampferalkampfer(1873) 1 month ago

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. read more...

add a comment |category: |Views: 175

tags: another

Running multiple browsers in one test run with Selenium(deanhume.com)

submitted by deanomachinodeanomachino(764) 1 month, 3 days ago

The beauty of Selenium is that it allows you to test your UI against all of the common browsers out there at the moment. Writing the code to test for a test scenario is quick and easy and getting up and running with Selenium can be done in a matter of minutes. Selenium works alongside Nunit and also nicely slots in with your automated build environment. read more...

add a comment |category: |Views: 104

tags: another

Comparing Microsoft Moles in VS2010 to Microsoft Fakes in VS11(www.richonsoftware.com)

submitted by czyzerczyzer(55) 1 month, 5 days ago

Provides a detailed comparison between Microsoft Moles in VS10 and Microsoft Fakes in VS11 in regards to using Moles for “future proofing” new testing initiatives and perhaps to bridge the gap between today’s testing and tomorrow’s tools. read more...

1 comment |category: |Views: 158

tags: another

Using SpecsFor.Mvc - Reading Data(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 1 month, 8 days ago

This is part three of my series on Using SpecsFor.Mvc to write awesome automated acceptance tests for your ASP.NET MVC application. In this post, I’ll show you how to create tests that verify expected data is displayed on a page by leveraging the MvcDisplayTemplates project with SpecsFor.Mvc. read more...

add a comment |category: |Views: 5

tags: another

Writing integration tests for ASP .NET with Selenium 2.0 – Part 2(nizarnoorani.com)

submitted by noorani786noorani786(342) 1 month, 11 days ago

This is the second in a series of posts on writing integration tests for ASP .NET using the Selenium 2.0 web application testing system. In this post, I’ll go over how to write and run C# test-cases using Selenium 2.0. I’ve also provided a base-class that contains helper methods for repetitive stuff like typing inside input fields. The base-class also speeds up the tests by re-using the same driver and preserving logins across tests. read more...

add a comment |category: |Views: 111

tags: another

xUnit Theory, the Data Driven Unit Test(www.tomdupont.net)

submitted by tduponttdupont(1259) 1 month, 13 days ago

A good set of unit tests often end up reusing the same code with varied inputs. Rather than copy and paste that test code over and over, we can use the pattern of data driven unit tests to help streamline our test fixtures. This is the practice of having a single test definition be invoked and count as multiple tests at run time. This also enables us to do other dynamic things, such as configuring our unit tests from external sources. :) I love NUnit, but it does not offer data driven unit tests. I frequently use MSTest, but it's data driven tests inconveniently require you to define a DataSource. Meanwhile xUnit offers several lightweight and simple options for defining data driven tests, which it refers to as theories. read more...

add a comment |category: |Views: 4

tags: another

Writing integration tests for ASP .NET with Selenium – Part 1(nizarnoorani.com)

submitted by noorani786noorani786(342) 1 month, 16 days ago

The first in a series of blog posts that will discuss how to setup, configure and write integration tests for ASP .NET using Selenium. read more...

2 comments |category: |Views: 215

tags: another

Migrating from NUnit to xUnit(www.tomdupont.net)

submitted by tduponttdupont(1259) 1 month, 19 days ago

If you are currently using NUnit to write your unit tests, then it is not at all difficult to migrate to using xUnit. The philosophical difference between the two is simply this: with xUnit you need to think of your tests as objects, rather than of methods. Here is a visual representation of equivalent test setups between NUnit and xUnit... read more...

2 comments |category: |Views: 198

tags: another

Using Stubs and Shims to Test with Microsoft Fakes in Visual Studio 11(www.richonsoftware.com)

submitted by czyzerczyzer(55) 1 month, 21 days ago

Microsoft has released Microsoft Fakes, a full featured mocking framework built into Visual Studio 11, which can "shim" any .NET method, including non-virtual and static methods in sealed types. This post digs into those features a little deeper and their general implications. read more...

add a comment |category: |Views: 24

tags: another

From Legacy to Dependency Injection(blogs.telerik.com)

submitted by KodefuGuruKodefuGuru(2818) 1 month, 22 days ago

We’ve all encountered tightly-bound code, and our first instinct is to correct it. However, there are only so many hours in a sprint, and it’s not always convenient to go on a large refactoring spree when the backlog is filling up. With JustMock, you can still ensure the code works, and it will set you up for the cleaning that will take place at a ... read more...

add a comment |category: |Views: 266

tags: another

To TDD or Not To TDD? That is the Discussion.(nizarnoorani.com)

submitted by noorani786noorani786(342) 2 months, 12 days ago

My evolution to TDD and reasons why I follow it... read more...

add a comment |category: |Views: 14

tags: another

Customizing Project Level Templates in Visual Studio Unit Test Framewo(www.dotnet-tv.com)

submitted by martinigmartinig(568) 2 months, 15 days ago

The Visual Studio Unit Test framework is the only test framework provided out of the box with ASP.NET MVC 3. This article shows you how to create and install custom test project templates and view engine options. read more...

add a comment |category: |Views: 10

tags: another

Test-Driven and Test-First Development » Noam Kfir(noam.kfir.cc)

submitted by yuvmazyuvmaz(44) 2 months, 16 days ago

A description of the essence of TDD, and why you can write tests after code and still call it TDD. read more...

add a comment |category: |Views: 126

tags: another

Quick-and-Easy Database Integration Tests with SpecsFor(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 2 months, 21 days ago

SpecsFor makes it very easy to bolt on your own conventions, create your own base classes, and extend its behavior to support your specific testing needs. I’m working on a project that’s built on LINQ to SQL, and I wanted to start creating integration tests around our stored procedures and views. Here’s the base class I made to handle establishing a database connection, loading in “seed data,” and then cleaning up after each set of specs once they’re finished. read more...

add a comment |category: |Views: 7

tags: another