Hi Aaron and friends - really digging MSpec so far, but I wanted to use it with xunit because Brad will smack my upside the head if I don't!
I found an issue, however, when using the Extensions. You can repro this using the latest trunk:
You should get an error that says:
System.IO.FileNotFoundException: Could not load file or assembly 'xunit, Version=220.127.116.11, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c' or one of its dependencies. The system cannot find the file specified.
File name: 'xunit, Version=18.104.22.168, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c'
at Machine.Specifications.XUnitShouldExtensionMethods.ShouldEqual[T](T actual, T expected)
D:\MSpec\machine.specifications\Source\Machine.Specifications.Example\BankingSpecs.cs(16,0): at Machine.Specifications.Example.when_transferring_between_two_accounts.<.ctor>b__6()
D:\MSpec\machine.specifications\Source\Machine.Specifications\Model\Specification.cs(75,0): at Machine.Specifications.Model.Specification.InvokeSpecificationField()
D:\MSpec\machine.specifications\Source\Machine.Specifications\Model\Specification.cs(53,0): at Machine.Specifications.Model.Specification.Verify()
I don't have nunit in my GAC
I'm running Win7 RC1 with VS 2008 SP1
It looks like it's a simple proximity issue with the xunit dll - and I looked in the libraries and it's there (xunit.dll) so I'm not entirely sure why it's not loading.
If you switch back to the NUnit extensions - everything works.
MSpec is currently using an old XUnit. If you use the same version or rebuild MSpec w/ the XUnit you're using this should go away.