From d9cd943c52ac49aede4a6664fd74b5c2bd55041b Mon Sep 17 00:00:00 2001 From: hypercross Date: Tue, 21 Jul 2026 09:50:04 +0800 Subject: [PATCH] test: rename Run to RunImpl in test mocks --- OECS.Tests/CommandTests.cs | 4 ++-- OECS.Tests/QueryAndSystemTests.cs | 8 ++++---- OECS.Tests/ReactivityTests.cs | 2 +- OECS.Tests/SingletonTests.cs | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/OECS.Tests/CommandTests.cs b/OECS.Tests/CommandTests.cs index 02f693b..f49d58c 100644 --- a/OECS.Tests/CommandTests.cs +++ b/OECS.Tests/CommandTests.cs @@ -251,7 +251,7 @@ public class CommandTests _command = command; } - public void Run(World world) + public void RunImpl(World world) { _world.Commands.Enqueue(_command); } @@ -261,7 +261,7 @@ public class CommandTests { public int SeenCount { get; private set; } - public void Run(World world) + public void RunImpl(World world) { foreach (var it in world.Select()) SeenCount++; diff --git a/OECS.Tests/QueryAndSystemTests.cs b/OECS.Tests/QueryAndSystemTests.cs index 934a2ff..bac8dff 100644 --- a/OECS.Tests/QueryAndSystemTests.cs +++ b/OECS.Tests/QueryAndSystemTests.cs @@ -159,9 +159,9 @@ public class SystemTests private class MovementSystem : ITickedSystem { - public void Run(World world) => Run(world, Tick.Logical()); + public void RunImpl(World world) => RunImpl(world, Tick.Logical()); - public void Run(World world, Tick tick) + public void RunImpl(World world, Tick tick) { float dt = tick.DeltaTime; foreach (var it in world.Select()) @@ -211,9 +211,9 @@ public class SystemTests public bool WasCalled { get; private set; } public Tick ReceivedTick { get; private set; } - public void Run(World world) { } + public void RunImpl(World world) { } - public void Run(World world, Tick tick) + public void RunImpl(World world, Tick tick) { WasCalled = true; ReceivedTick = tick; diff --git a/OECS.Tests/ReactivityTests.cs b/OECS.Tests/ReactivityTests.cs index c154290..c6dd7c3 100644 --- a/OECS.Tests/ReactivityTests.cs +++ b/OECS.Tests/ReactivityTests.cs @@ -273,7 +273,7 @@ public class ReactivityTests _world = world; } - public void Run(World world) + public void RunImpl(World world) { _world.CreateEntity(); } diff --git a/OECS.Tests/SingletonTests.cs b/OECS.Tests/SingletonTests.cs index d5570d6..c91200b 100644 --- a/OECS.Tests/SingletonTests.cs +++ b/OECS.Tests/SingletonTests.cs @@ -154,9 +154,9 @@ public class SingletonTests _world = world; } - public void Run(World world) => Run(world, Tick.Logical()); + public void RunImpl(World world) => RunImpl(world, Tick.Logical()); - public void Run(World world, Tick tick) + public void RunImpl(World world, Tick tick) { ref var time = ref _world.GetSingleton(); time.Elapsed += tick.DeltaTime;