Exemplo n.º 1
0
        protected async Task MissAsync(string email, string name, Image expected = null)
        {
            _inner.ClearReceivedCalls();

            var actual = await _cache.GetAvatarAsync(email, name, _size);

            _ = _inner.Received(1).GetAvatarAsync(email, name, _size);

            if (expected is not null)
            {
                Assert.AreSame(expected, actual);
            }
        }