-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jake Soenneker
committed
Dec 23, 2024
1 parent
ba11fe2
commit 6a681b6
Showing
5 changed files
with
78 additions
and
8 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
test/Soenneker.Swashbuckle.SmartEnumFilter.Tests/Collection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Xunit; | ||
|
||
namespace Soenneker.Swashbuckle.SmartEnumFilter.Tests; | ||
|
||
/// <summary> | ||
/// This class has no code, and is never created. Its purpose is simply | ||
/// to be the place to apply [CollectionDefinition] and all the | ||
/// ICollectionFixture interfaces. | ||
/// </summary> | ||
[CollectionDefinition("Collection")] | ||
public class Collection : ICollectionFixture<Fixture> | ||
{ | ||
} |
28 changes: 28 additions & 0 deletions
28
test/Soenneker.Swashbuckle.SmartEnumFilter.Tests/Fixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Serilog; | ||
using Soenneker.Fixtures.Unit; | ||
using Soenneker.Utils.Test; | ||
|
||
namespace Soenneker.Swashbuckle.SmartEnumFilter.Tests; | ||
|
||
public class Fixture : UnitFixture | ||
{ | ||
public override System.Threading.Tasks.ValueTask InitializeAsync() | ||
{ | ||
SetupIoC(Services); | ||
|
||
return base.InitializeAsync(); | ||
} | ||
|
||
private static void SetupIoC(IServiceCollection services) | ||
{ | ||
services.AddLogging(builder => | ||
{ | ||
builder.AddSerilog(dispose: true); | ||
}); | ||
|
||
IConfiguration config = TestUtil.BuildConfig(); | ||
services.AddSingleton(config); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
test/Soenneker.Swashbuckle.SmartEnumFilter.Tests/SmartEnumSchemaFilterTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Soenneker.Tests.FixturedUnit; | ||
using Xunit; | ||
|
||
namespace Soenneker.Swashbuckle.SmartEnumFilter.Tests; | ||
|
||
[Collection("Collection")] | ||
public class SmartEnumSchemaFilterTests : FixturedUnitTest | ||
{ | ||
public SmartEnumSchemaFilterTests(Fixture fixture, ITestOutputHelper output) : base(fixture, output) | ||
{ | ||
} | ||
|
||
[Fact] | ||
public void Default() | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
test/Soenneker.Swashbuckle.SmartEnumFilter.Tests/appsettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |