Пример #1
0
        public async Task ShouldMatchMethodForMethod()
        {
            var fallback = new DummyFallback();
            var service  = Test.GenerateService <IFallbackService>();

            var fortune = await service.AddFortune("ignored");

            fortune.Should().BeEquivalentTo(await fallback.AddFortune("ignored"));
        }
Пример #2
0
        public async Task ReturnsDefaultValueFromFallbackClass()
        {
            var fallback = new DummyFallback();
            var service  = Test.GenerateService <IFallbackService>();

            var fortune = await service.GetFortune();

            fortune.Should().BeEquivalentTo(await fallback.GetFortune());
        }