-
|
I have checked and found that:
public static class Var
{
public const HookType Type = HookType.Test; // just for switching easily!
}
public sealed class One
{
[Before(Var.Type)]
public async Task Before()
{
await Task.Delay(3000);
Console.WriteLine(nameof(Before));
}
[After(Var.Type)]
public async Task After()
{
await Task.Delay(3000);
Console.WriteLine(nameof(After));
}
[Test]
public async Task IndependentOne()
{
await Task.Delay(3000);
Console.WriteLine("IndependentOne");
}
}
public sealed class Two
{
[BeforeEvery(Var.Type)]
public static async Task BeforeEvery()
{
await Task.Delay(3000);
Console.WriteLine(nameof(BeforeEvery));
}
[AfterEvery(Var.Type)]
public static async Task AfterEvery()
{
await Task.Delay(3000);
Console.WriteLine(nameof(AfterEvery));
}
[Test]
public async Task IndependentTwo()
{
await Task.Delay(3000);
Console.WriteLine("IndependentTwo");
}
}I have no idea what I should ask. 🤣 |
Beta Was this translation helpful? Give feedback.
Answered by
thomhurst
Nov 13, 2025
Replies: 1 comment 2 replies
-
|
Hmm I'll take a look later. Weird. Are you just looking for the console output? Have you stuck a breakpoint in them? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah phew. So they are being hit. I thought as much.
The console output is just being lost. I think this might be Microsoft testing platform. It refreshes the interactive output to display a live count of passed/failed tests. I raised an issue a while back where this refresh can cause some output to be lost/overwritten.