GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — TUnit.Mocks: generic-method setups with explicit type arguments do not bind on Mock.Of<IGeneric<X>>() · Issue #7302 · thomhurst/TUnit Closed Labels P2Medium: edge case, mode divergence, flaky test, or workaround existsbugSomething isn't workingin-progressWork is in progress DescriptionDescriptionOn a Found while working on #7299. It happens on Repro (TUnit.Mocks.Tests, net10.0)Uses the existing var mock = Mock.Of<IGenericKitchenSink<GenericPayload, int>>(); mock.RoundTrip<Guid>(Arg.Any<Guid>()); // CS1061 mock.RoundTrip(Arg.Any<Guid>()); // compiles var wrapper = IGenericKitchenSink<GenericPayload, int>.Mock(); wrapper.RoundTrip<Guid>(Arg.Any<Guid>()); // compiles The generator emits the member in both extension blocks with the same shape: extension<TItem, TValue>(global::TUnit.Mocks.Mock<global::TUnit.Mocks.Tests.IGenericKitchenSink<TItem, TValue>> mock) where TItem : class { public ..._RoundTrip_M9_MockCall<TState, TItem, TValue> RoundTrip<TState>(global::TUnit.Mocks.Arguments.Arg<TState> state) where TState : struct and extension<TItem, TValue>(global::TUnit.Mocks.Tests.IGenericKitchenSink_TItem_TValue_Mock<TItem, TValue> mock) where TItem : class Only the Expected
Activity
MetadataMetadataAssigneesLabelsP2Medium: edge case, mode divergence, flaky test, or workaround existsbugSomething isn't workingin-progressWork is in progress TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |