Google
×
The most popular and friendly mocking framework for .NET - moq/src/Moq/SequenceExtensions.cs at main ˇ devlooped/moq. ... sequence of tasks, once per call. /// </ ...
Jan 9, 2018 ˇ The new SetupSequence method is good, but there are a couple of things that would make it better (make test code more concise and readable).
Apr 20, 2020 ˇ Hi, I think I just spotted a bug when using the SetupSequence when trying to return is null first. For example: var nullCompany ...
The most popular and friendly mocking framework for .NET - moq/src/Moq/SequenceSetup.cs at main ˇ devlooped/moq.
Nov 6, 2020 ˇ It ought to be pretty easy to add CallBase support when setting up a Sequence on a void method. Agreed, it should be fairly straightforward.
Sep 24, 2019 ˇ I created a method on the AutoMocker for SetupSequence. I think its a "nice to have" shortcut, when adding a sequence of results.
Moq.Sequences allows you to enforce that methods or property accessors are called in a specific sequence.
May 11, 2016 ˇ Currently ReturnsAsync() is an extension method on IReturns > and SetupSequence() is on Mock . Is it something you could add, please?
The most popular and friendly mocking framework for .NET - moq/src/Moq/Language/Flow/SetupSequencePhrase.cs at main ˇ devlooped/moq.
Oct 3, 2017 ˇ SetupSequence() is not thread-safe. If two threads call the mock, it can return the same value more than once. The following failing test ...