Discussions

Ask a Question

Worn-Out Suspension? Signs That May Aid-In Identification!

These Are Some Useful Hacks To Optimize Your Car Running Expenses

RowTests?

Are there any examples of using SpecsFor with NUnit's RowTests? (Now called TestCase, I believe)

How to upgrade SpecFor to use the Latest NUnit

Want to run tests in VSTS. No tests seems to be running.

ANSWERED

Using ConfigureContainer to pass an IEnumerable<T> isn't playing nice

I'm trying to write a spec for a class that takes as its ctor parameter an IEnumerable object. I'm overriding ConfigureContainer and specifying a List of real objects however the sut isn't seeing those values. Any ideas?

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?

Constructor will be called before calling Given()-method

Hello,

ANSWERED

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:

ANSWERED

Installation - SpecsFor

Hi Matt: