2 references to SingleException
xunit.assert (2)
Sdk\Exceptions\SingleException.cs (2)
31
new
SingleException
($"The collection was expected to contain a single element{(expected == null ? "" : " matching " + expected)}, but it {(expected == null ? "was empty." : "contained no matching elements.")}");
42
new
SingleException
($"The collection was expected to contain a single element{(expected == null ? "" : " matching " + expected)}, but it contained {count}{(expected == null ? "" : " matching")} elements.");