Discussions
Verification of list parameters
I'm trying to verify a call was made to a repository AddRange method. I can verify the method was called at all like this:
Installation - SpecsFor
Hi Matt:
Problem with 2015/4.5
I see that there's a fork project that says it's for VS 2015 and .Net 4.6, but I'm on a project using 4.5, and I can't seem to get SpecsFor.MVC working. The regular version fails to install right, complaining that the browser drivers already exist. I can push past that by trying the install multiple times, but I still don't end up with a SpecsFor.Mvc reference in the project, even though the NuGet package seems to think it should be there. I tried the fork project, but didn't have any better luck there since it wants to reference a higher version of the System.Web.Mvc assembly.
HTTP Headers
Hello
Constructor will be called before calling Given()-method
Hello,
Windows Authentication not working
Hi,
SpecsFor<object?>
I have a test I need to write that is for a static method on a static class. Since I don't need a SUT to be created, I don't really have anything to put between the angle brackets on the base class. I could just not inherit from SpecsFor at all, but then I have one mutant test that doesn't match the others in terms of style. I'd like to keep the pattern of overriding Given and When for consistency with my other tests. Is there an established or generally accepted pattern for this? I can inherit from SpecsFor and it doesn't seem to complain, but can I count on this in the future?
Primitive dependencies
Moq has a way of specifying values for primitive dependencies. Is there any way to explain this to SpecsFor without completely taking over the SUT construction via InitializeClassUnderTest?
Telerik JustMock
Do you see any issues with using Specs for and Telerik's JustMock mocking library? We have a dependency on it for Fakes of legacy code.
Theory
How does this library interact with Theories. I'd like to have multiple datapoints for my tests.