Note that there are some explanatory texts on larger screens.

plurals
  1. USdocmanhattan
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. CO@PeteMontgomery Times.Never just means zero. So as you are verifying, you are verifying invocation of the given expression zero times. This is the same behavior as the other 'Times' in that it is testing invocation of the given expression and nothing else (i.e. invocation of the same method with different arguments). If you add Times.Always you are either changing what Verify is doing or verifying the expression was invoked 'Always' number of times (ambiguous). In contrast, a 'Times.Even' could be added since it does not change what Verify is doing and is not an ambiguous determination.
      singulars
    2. CO@PeteMontgomery Given the current behavior, it might be confusing to drop in a Times.Always. The 'Verify' method states 'Verifies that a specific invocation matching the given expression was performed on the mock.' Adding a Times.Always value would fundamentally change what the Verify method is doing. For every other value, it would be normal but for Times.Always it would now also be checking that it WASN'T calling the method with OTHER arguments. If you were to use Verify in the strict sense, 'Always' would be an ambiguous term (as explained in my answer) and therefore not make sense.
      singulars
    3. CO@Tyrsius Actually, I hardly ever (never) use Canvas, I just thought it was necessary to get the TextBlock on top of the ProgressBar (I don't have UI elements stacked on each other in my UI so I wouldn't know). Looks like Grid let's you stack them as well and I always prefer a Grid to a Canvas element.
      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