Skip to content

Commit

Permalink
Fix local debuggability... Need to use the "Options Experience (Previ…
Browse files Browse the repository at this point in the history
…ew)" and have "Use testing platform server mode" checked.
  • Loading branch information
IEvangelist committed Dec 5, 2024
1 parent e0d93c6 commit dfab69a
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 36 deletions.
1 change: 0 additions & 1 deletion src/ProfanityFilter.Action/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
global using ProfanityFilter.Action.Extensions;
global using ProfanityFilter.Action.Models;
global using ProfanityFilter.Services;
global using ProfanityFilter.Services.Extensions;
global using ProfanityFilter.Services.Filters;
global using ProfanityFilter.Services.Results;
global using ContextSummaryPair = (
Expand Down
3 changes: 0 additions & 3 deletions tests/ProfanityFilter.Action.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@
global using Actions.Core.Summaries;

global using Microsoft.Extensions.DependencyInjection;
global using Microsoft.Testing.Framework;
global using Microsoft.Testing.Platform.Builder;
global using Microsoft.VisualStudio.TestTools.UnitTesting;

global using ProfanityFilter.Action.Clients;
global using ProfanityFilter.Action.Extensions;
global using ProfanityFilter.Action.Tests;

global using ProfanityFilter.Services;
global using ProfanityFilter.Services.Filters;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<!-- Allows the new platform to be called when calling dotnet test -->
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
<GenerateTestingPlatformEntryPoint>false</GenerateTestingPlatformEntryPoint>
</PropertyGroup>

<ItemGroup>
Expand Down
12 changes: 0 additions & 12 deletions tests/ProfanityFilter.Action.Tests/Program.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
// Copyright (c) David Pine. All rights reserved.
// Licensed under the MIT License.

using Microsoft.Extensions.Logging.Abstractions;
using ProfanityFilter.Services.Filters;

namespace ProfanityFilter.Services.Tests;

[TestClass]
public class DefaultProfaneContentFilterServiceTests
{
#pragma warning disable CA1859 // Use concrete types when possible for improved performance
private readonly IProfaneContentFilterService _sut;
#pragma warning restore CA1859 // Use concrete types when possible for improved performance

public DefaultProfaneContentFilterServiceTests() => _sut = new DefaultProfaneContentFilterService(
cache: new MemoryCache(Options.Create<MemoryCacheOptions>(new())),
Expand Down
5 changes: 2 additions & 3 deletions tests/ProfanityFilter.Services.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@

global using Microsoft.Extensions.Caching.Memory;
global using Microsoft.Extensions.DependencyInjection;
global using Microsoft.Extensions.Logging.Abstractions;
global using Microsoft.Extensions.Options;
global using Microsoft.Testing.Framework;
global using Microsoft.Testing.Platform.Builder;
global using Microsoft.VisualStudio.TestTools.UnitTesting;

global using ProfanityFilter.Services.Extensions;
global using ProfanityFilter.Services.Filters;
global using ProfanityFilter.Services.Results;
global using ProfanityFilter.Services.Tests;
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<!-- Allows the new platform to be called when calling dotnet test -->
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
<GenerateTestingPlatformEntryPoint>false</GenerateTestingPlatformEntryPoint>
</PropertyGroup>

<ItemGroup>
Expand Down
12 changes: 0 additions & 12 deletions tests/ProfanityFilter.Services.Tests/Program.cs

This file was deleted.

0 comments on commit dfab69a

Please sign in to comment.