Note that there are some explanatory texts on larger screens.

plurals
  1. USJeff
    primarykey
    data
    text
    plurals
    1. COUsing Derived Value it seems possible to get [False Negative](http://xunitpatterns.com/false%20negative.html) results if your tests are written in C# and your SUT is written in VB.NET. In my code, R# suggested using `StringComparison.Orginal` with `LastIndexOf` in the C# test, but not in the VB.NET-written SUT. The R# suggestion isn't the problem, but it indicates that using Derived Value either tightly couples you to a particular .NET language, or expose you to [sneaky differences that exist between languages](http://stackoverflow.com/a/14931907/533958)
      singulars
    2. COThanks, Mark, also for the embedded references. In using Structural Inspection, should the readonly properties be part of the interface or only the implementations under test (assuming there exists an `IBuilderStrategy` which `BuilderStrategy` implements)? Also, I would think that it would be better to expose these properties *as the need arises* in unit testing, rather than expose all dependencies as a routine matter (although, I suppose that in practicing TDD, this would all happen naturally). Do you have an opinion on any of that?
      singulars
    3. COThanks for deciphering this one! Mixed emotions when the answer turns out to be a bug in the library I'm using… I stumbled onto this by accident because some of my XXXBuilder classes were sealed, some not. Discovered the argument about whether to seal classes in absence of a good reason to not seal, or do the opposite. Seems like sealing classes can cause unit testing friction - care to share an opinion on the matter?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload