/// <summary> /// Assert that the mocked method has been invoked. /// </summary> public void AssertInvoked() => _asserter.AssertIf(0 == _invokedCounter.Value(), $"{_name} was expected but not invoked.");
public void AssertType(object obj) { AssertIfNull(obj); _asserter.AssertIf(obj.GetType() != _type, $"Expected [name={_name}] to be of [type={_type.Name}] but found [type={obj.GetType().Name}]"); }
private void AssertType(object actualValue) { AssertIfNull(actualValue); _asserter.AssertIf(actualValue.GetType() != _type, $"Expected [name={_name}] to be of [type={_type.Name}] but found [type={actualValue.GetType().Name}]"); }