public void Should_delegate_conversion_to_converter() { ConverterMock.Setup(c => c.Convert <string>(It.IsAny <JToken[]>())).Returns <JToken[]>(tokens => String.Join(String.Empty, tokens.Select(s => s.Value <string>()))); CreateProvider("con", "tent") .GetConfiguration <string>() .Should().Be("content"); ConverterMock.Verify(c => c.Convert <string>(It.IsAny <JToken[]>()), Times.Once); }
protected void VerifyMocks() { ConverterMock.Verify(m => m.Convert(It.IsAny <string>()), Times.Once); MapperMock.Verify(m => m.MapValue(It.IsAny <object>(), It.IsAny <TValue>()), Times.Once); ValidatorMock.Verify(m => m.Validate(It.IsAny <TValue>()), Times.Once); }
public void ConverterSinks() { ConverterMock.Verify(m => m.Convert(It.IsAny <string>()), Times.Once); }