Category: <span>SpecsFor</span>

SpecsFor 7.0 Released!

SpecsFor 7 final is here!

Read MoreView 2 Comments

SpecsFor 6 Released. So is Version 7.

Both SpecsFor 6 and 7 are now available. SpecsFor 6 brings support for .NET Core, while SpecsFor 7 extends support to Autofac.

Read MoreView 9 Comments

SpecsFor Mega Update

There’s actually news in the world of SpecsFor! .NET Standard support has arrived, plans for the next version are becoming a little more concrete… read on if you want to catch up!

Read MoreView 7 Comments

A Simple Trick to View Data in SQL Server While Your Specs Are Running

It’s ridiculously easy to do integration testing against Entity Framework and a real database when you are using SpecsFor.   I use SpecsFor to do all my integration testing.   But it occurred to me that I’ve never publicly documented one of the common tricks I use: viewing data in the test database while the specs are…

Read More

SpecsFor 5.0 Released!

The new version of SpecsFor should now be live on NuGet.  This version uses the latest version of StructureMap and Moq and fixes a couple of other issues.  SpecsFor also gained a new partial matching method a while back, I just haven’t had time blog about it.  Read on to find out how to use…

Read More

SpecsFor, SpecsFor Helpers, and SpecsFor All Updated!

There are lots of small fixes and improvements across the SpecsFor suite today.  Let’s take a look! [more] SpecsFor 4.4.0 First, the Any.NonNullValueOf partial matcher now works with nullable types! SUT.ShouldLookLike(() => new TestObject { OptionalDate = Any.NonNullValueOf<DateTime?>() }) I also added two new Should extension methods for checking IEnumerables for ascending/descending values: Assert.DoesNotThrow(() =>…

Read More

SpecsFor Updates!

New versions of both SpecsFor.Web.Helpers and SpecsFor.Mvc rolled out this week, thanks to the contributions of two users from the community. [more] First, Dan Patterson was kind enough to improve the Fake* objects, making it possible to simulate AJAX requests.  He added two new interfaces that can be used for configuring the behavior of the…

Read More

SpecsFor – Better Partial Matching for Dates

I just shipped a small update to SpecsFor that improves the partial-matching story when dealing with dates. [more] Prior to this update, if you wanted to see if a DateTime value was “near” the current time, you had to do something like this: obj.ShouldLookLike(() => new TestObject { DateTimeValue = Some.ValueInRange(DateTime.Now.AddSeconds(-1), DateTime.Now) }) With version…

Read More

Using SpecsFor.Mvc with Windows Authentication

Numerous people have requested that I put together a sample that illustrates how to use SpecsFor.Mvc with Windows Authentication.  Guess what’s in this post? [more] Specifying your own ApplicationHost.config file for SpecsFor.Mvc to use is the secret to getting Windows Authentication to work.  I’m going to assume you’ve already got your web project configured to…

Read More

SpecsFor.Mvc 4.5.0 Released!

A new build of SpecsFor.Mvc is now available on NuGet!  This release was made possible by contributions from the community, so a big “Thank You!” goes out to henkeson and neuhoffm!  Their contributions added support for: Project configurations that have non-standard solution locations (just call Solution.Named() or pass in the path to your solution directly!)…

Read More