Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Initial exploration and issue reproduction
Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com>
  • Loading branch information
Copilot and thomhurst committed Aug 3, 2025
commit cd27163cb061ec5a23c320e34161c9e5d5b888cd
29 changes: 29 additions & 0 deletions TUnit.TestProject/SkipConstructorTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using TUnit.Core;

namespace TUnit.TestProject;

public class SkipConstructorTest : IAsyncDisposable
{
public static bool ConstructorCalled { get; set; }
public static bool DisposeCalled { get; set; }

public SkipConstructorTest()
{
ConstructorCalled = true;
Console.WriteLine("SkipConstructorTest constructor called");
}

[Test]
[Skip("Test should be skipped")]
public void SkippedTestShouldNotCallConstructor()
{
Console.WriteLine("This test method should not run");
}

public ValueTask DisposeAsync()
{
DisposeCalled = true;
Console.WriteLine("SkipConstructorTest dispose called");
return ValueTask.CompletedTask;
}
}