This repository was archived by the owner on Aug 18, 2021. It is now read-only.
File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 13
13
<ItemGroup >
14
14
<PackageReference Include =" AutoFixture.AutoNSubstitute" Version =" 4.11.0" />
15
15
<PackageReference Include =" AutoFixture.Xunit2" Version =" 4.11.0" />
16
+ <PackageReference Include =" Microsoft.CodeAnalysis.FxCopAnalyzers" Version =" 2.9.6" >
17
+ <PrivateAssets >all</PrivateAssets >
18
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
19
+ </PackageReference >
16
20
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.2.0" />
17
21
<PackageReference Include =" StyleCop.Analyzers" Version =" 1.2.0-beta.113" >
18
22
<PrivateAssets >all</PrivateAssets >
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ public void WhenUseMessageBusThenGetMessageBusReturnsSame()
43
43
{
44
44
Workbench . Instance . UseMessageBus < MockWorker > ( ) ;
45
45
46
- // TODO: How to get the message bus? No shortcut ?
47
- // Assert.IsAssignableFrom<MockWorker>(Workbench.Instance.);
46
+ // TODO: No shortcut for the message bus... why ?
47
+ Assert . IsAssignableFrom < MockWorker > ( Workbench . Instance . GetRegisteredService ( WorkbenchServiceType . Worker ) ) ;
48
48
}
49
49
50
50
[ Fact ]
@@ -405,7 +405,6 @@ private class MockWorker : ILightWorker
405
405
{
406
406
public void Initialize ( )
407
407
{
408
- throw new NotImplementedException ( ) ;
409
408
}
410
409
}
411
410
Original file line number Diff line number Diff line change 1
- using AutoFixture ;
1
+ // Copyright (c) Avanade Inc. All rights reserved.
2
+ // Licensed under the MIT License. See LICENSE in the project root for license information.
3
+
4
+ using AutoFixture ;
2
5
using AutoFixture . AutoNSubstitute ;
3
6
using AutoFixture . Xunit2 ;
4
7
@@ -27,7 +30,7 @@ public class AutoSubstituteDataAttribute : AutoDataAttribute
27
30
/// Initializes a new instance of the <see cref="AutoSubstituteDataAttribute"/> class.
28
31
/// </summary>
29
32
public AutoSubstituteDataAttribute ( )
30
- : base ( ( ) => new Fixture ( ) . Customize ( new AutoNSubstituteCustomization ( ) ) )
33
+ : base ( ( ) => new Fixture ( ) . Customize ( new AutoNSubstituteCustomization ( ) ) )
31
34
{
32
35
// empty
33
36
}
You can’t perform that action at this time.
0 commit comments