From 79487d9816e0bbb74a09e8983dba076fc9ec8147 Mon Sep 17 00:00:00 2001 From: rushiiMachine <33725716+rushiiMachine@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:28:21 -0700 Subject: [PATCH] feat(TestStubs): log resolved runtime name --- Osu.Stubs.Tests/TestStubs.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Osu.Stubs.Tests/TestStubs.cs b/Osu.Stubs.Tests/TestStubs.cs index c229428..697d909 100644 --- a/Osu.Stubs.Tests/TestStubs.cs +++ b/Osu.Stubs.Tests/TestStubs.cs @@ -21,6 +21,17 @@ public void TestStub(ILazy lazy) => Assert.DoesNotThrow( try { lazy.Fill(); + + if (lazy.Reference is Type type) + { + TestContext.WriteLine(type.FullName); + } + else + { + TestContext.Write(lazy.Reference.DeclaringType!.FullName); + TestContext.Write(" :: "); + TestContext.WriteLine(lazy.Reference.ToString()); + } } catch (AggregateException e) {