Testing

November 3, 2016

Binding an Extracted Value in a Web Test

By |2018-03-05T22:25:57+00:00November 3rd, 2016|Categories: Testing|

I was creating a multi step web test in Visual Studio, for use in running in Azure. I needed to extract a request value for use later in my test. I could not seem to find a concrete example of how to do this. Here's what worked for me: When creating a Web Test in Visual Studio, [...]

September 24, 2015

Selenium vs Coded UI Thoughts

By |2015-09-24T16:41:06+00:00September 24th, 2015|Categories: C#, MVC, Testing|

I should mention that this is not intended to be a full in-depth review and comparison of the two UI testing frameworks, just a quick post on my general thoughts after using both of them on the same project. I have recently started work on introducing some basic automated UI tests to one of our solutions. [...]

June 4, 2015

VSLive 2015 in Austin, TX!

By |2018-06-27T17:47:50+00:00June 4th, 2015|Categories: ASP.NET, C#, General Technology, IIS, MVC, SQL Server, Testing|Tags: , |

I'm writing this post from the Austin airport as I'm getting ready to head home after a very educational 4 days in Austin for VSLive 2015. I wanted to quickly write down a lot of key points from all of the sessions I attended. I figure writing about something is a good way to retain a [...]

January 3, 2015

Libraries for Unit Testing MVC5 Controllers

By |2015-01-03T17:25:04+00:00January 3rd, 2015|Categories: C#, General Technology, MVC, Testing|Tags: , |

There are various libraries available to help you unit test your controller actions, returned views and models, and action results with MVC. One that I have recently started using is TestStack.FluentMVCTesting. This library allows you to perform actions on your controllers within your unit tests, and then verify, with a fluent syntax, that those actions behaved [...]

August 28, 2014

Mocking a generic ObjectSet or IObjectSet for Unit Testing Entity Framework Business Logic

By |2014-08-28T21:35:42+00:00August 28th, 2014|Categories: C#, Testing|Tags: |

Up until this point, I had mostly been using nHibernate for my ORM solution in most applications I work on. So when I started diving into Entity Framework (EF) models and trying to write unit tests against logic that lives in EF entities, I first encountered the ObjectSet<T> type. Now to be clear, I was not [...]