AgingSteps => SelfTestSteps

This commit is contained in:
goaaats 2025-04-02 22:38:28 +02:00
parent 95bac801b2
commit d2cae32bc2
29 changed files with 108 additions and 108 deletions

View file

@ -4,7 +4,7 @@ using System.Numerics;
using Dalamud.Interface.Colors; using Dalamud.Interface.Colors;
using Dalamud.Interface.Components; using Dalamud.Interface.Components;
using Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; using Dalamud.Interface.Internal.Windows.SelfTest.Steps;
using Dalamud.Interface.Utility; using Dalamud.Interface.Utility;
using Dalamud.Interface.Windowing; using Dalamud.Interface.Windowing;
using Dalamud.Logging.Internal; using Dalamud.Logging.Internal;
@ -20,40 +20,40 @@ internal class SelfTestWindow : Window
{ {
private static readonly ModuleLog Log = new("AGING"); private static readonly ModuleLog Log = new("AGING");
private readonly List<IAgingStep> steps = private readonly List<ISelfTestStep> steps =
new() new()
{ {
new LoginEventAgingStep(), new LoginEventSelfTestStep(),
new WaitFramesAgingStep(1000), new WaitFramesSelfTestStep(1000),
new EnterTerritoryAgingStep(148, "Central Shroud"), new EnterTerritorySelfTestStep(148, "Central Shroud"),
new ItemPayloadAgingStep(), new ItemPayloadSelfTestStep(),
new ContextMenuAgingStep(), new ContextMenuSelfTestStep(),
new NamePlateAgingStep(), new NamePlateSelfTestStep(),
new ActorTableAgingStep(), new ActorTableSelfTestStep(),
new FateTableAgingStep(), new FateTableSelfTestStep(),
new AetheryteListAgingStep(), new AetheryteListSelfTestStep(),
new ConditionAgingStep(), new ConditionSelfTestStep(),
new ToastAgingStep(), new ToastSelfTestStep(),
new TargetAgingStep(), new TargetSelfTestStep(),
new KeyStateAgingStep(), new KeyStateSelfTestStep(),
new GamepadStateAgingStep(), new GamepadStateSelfTestStep(),
new ChatAgingStep(), new ChatSelfTestStep(),
new HoverAgingStep(), new HoverSelfTestStep(),
new LuminaAgingStep<Item>(true), new LuminaSelfTestStep<Item>(true),
new LuminaAgingStep<Level>(true), new LuminaSelfTestStep<Level>(true),
new LuminaAgingStep<Lumina.Excel.Sheets.Action>(true), new LuminaSelfTestStep<Lumina.Excel.Sheets.Action>(true),
new LuminaAgingStep<Quest>(true), new LuminaSelfTestStep<Quest>(true),
new LuminaAgingStep<TerritoryType>(false), new LuminaSelfTestStep<TerritoryType>(false),
new AddonLifecycleAgingStep(), new AddonLifecycleSelfTestStep(),
new PartyFinderAgingStep(), new PartyFinderSelfTestStep(),
new HandledExceptionAgingStep(), new HandledExceptionSelfTestStep(),
new DutyStateAgingStep(), new DutyStateSelfTestStep(),
new GameConfigAgingStep(), new GameConfigSelfTestStep(),
new MarketBoardAgingStep(), new MarketBoardSelfTestStep(),
new SheetRedirectResolverAgingStep(), new SheetRedirectResolverSelfTestStep(),
new NounProcessorAgingStep(), new NounProcessorSelfTestStep(),
new SeStringEvaluatorAgingStep(), new SeStringEvaluatorSelfTestStep(),
new LogoutEventAgingStep(), new LogoutEventSelfTestStep(),
}; };
private readonly List<(SelfTestStepResult Result, TimeSpan? Duration)> stepResults = new(); private readonly List<(SelfTestStepResult Result, TimeSpan? Duration)> stepResults = new();

View file

@ -2,12 +2,12 @@ using Dalamud.Game.ClientState.Objects;
using Dalamud.Utility; using Dalamud.Utility;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for the Actor Table. /// Test setup for the Actor Table.
/// </summary> /// </summary>
internal class ActorTableAgingStep : IAgingStep internal class ActorTableSelfTestStep : ISelfTestStep
{ {
private int index = 0; private int index = 0;

View file

@ -5,23 +5,23 @@ using Dalamud.Game.Addon.Lifecycle.AddonArgTypes;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup AddonLifecycle Service. /// Test setup AddonLifecycle Service.
/// </summary> /// </summary>
internal class AddonLifecycleAgingStep : IAgingStep internal class AddonLifecycleSelfTestStep : ISelfTestStep
{ {
private readonly List<AddonLifecycleEventListener> listeners; private readonly List<AddonLifecycleEventListener> listeners;
private AddonLifecycle? service; private AddonLifecycle? service;
private TestStep currentStep = TestStep.CharacterRefresh; private TestStep currentStep = TestStep.CharacterRefresh;
private bool listenersRegistered; private bool listenersRegistered;
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="AddonLifecycleAgingStep"/> class. /// Initializes a new instance of the <see cref="AddonLifecycleSelfTestStep"/> class.
/// </summary> /// </summary>
public AddonLifecycleAgingStep() public AddonLifecycleSelfTestStep()
{ {
this.listeners = new List<AddonLifecycleEventListener> this.listeners = new List<AddonLifecycleEventListener>
{ {
@ -33,7 +33,7 @@ internal class AddonLifecycleAgingStep : IAgingStep
new(AddonEvent.PreFinalize, "Character", this.PreFinalize), new(AddonEvent.PreFinalize, "Character", this.PreFinalize),
}; };
} }
private enum TestStep private enum TestStep
{ {
CharacterRefresh, CharacterRefresh,
@ -44,10 +44,10 @@ internal class AddonLifecycleAgingStep : IAgingStep
CharacterFinalize, CharacterFinalize,
Complete, Complete,
} }
/// <inheritdoc/> /// <inheritdoc/>
public string Name => "Test AddonLifecycle"; public string Name => "Test AddonLifecycle";
/// <inheritdoc/> /// <inheritdoc/>
public SelfTestStepResult RunStep() public SelfTestStepResult RunStep()
{ {
@ -60,7 +60,7 @@ internal class AddonLifecycleAgingStep : IAgingStep
{ {
this.service.RegisterListener(listener); this.service.RegisterListener(listener);
} }
this.listenersRegistered = true; this.listenersRegistered = true;
} }
@ -89,7 +89,7 @@ internal class AddonLifecycleAgingStep : IAgingStep
// Nothing to report to tester. // Nothing to report to tester.
break; break;
} }
return this.currentStep is TestStep.Complete ? SelfTestStepResult.Pass : SelfTestStepResult.Waiting; return this.currentStep is TestStep.Complete ? SelfTestStepResult.Pass : SelfTestStepResult.Waiting;
} }
@ -101,32 +101,32 @@ internal class AddonLifecycleAgingStep : IAgingStep
this.service?.UnregisterListener(listener); this.service?.UnregisterListener(listener);
} }
} }
private void PostSetup(AddonEvent eventType, AddonArgs addonInfo) private void PostSetup(AddonEvent eventType, AddonArgs addonInfo)
{ {
if (this.currentStep is TestStep.CharacterSetup) this.currentStep++; if (this.currentStep is TestStep.CharacterSetup) this.currentStep++;
} }
private void PostUpdate(AddonEvent eventType, AddonArgs addonInfo) private void PostUpdate(AddonEvent eventType, AddonArgs addonInfo)
{ {
if (this.currentStep is TestStep.CharacterUpdate) this.currentStep++; if (this.currentStep is TestStep.CharacterUpdate) this.currentStep++;
} }
private void PostDraw(AddonEvent eventType, AddonArgs addonInfo) private void PostDraw(AddonEvent eventType, AddonArgs addonInfo)
{ {
if (this.currentStep is TestStep.CharacterDraw) this.currentStep++; if (this.currentStep is TestStep.CharacterDraw) this.currentStep++;
} }
private void PostRefresh(AddonEvent eventType, AddonArgs addonInfo) private void PostRefresh(AddonEvent eventType, AddonArgs addonInfo)
{ {
if (this.currentStep is TestStep.CharacterRefresh) this.currentStep++; if (this.currentStep is TestStep.CharacterRefresh) this.currentStep++;
} }
private void PostRequestedUpdate(AddonEvent eventType, AddonArgs addonInfo) private void PostRequestedUpdate(AddonEvent eventType, AddonArgs addonInfo)
{ {
if (this.currentStep is TestStep.CharacterRequestedUpdate) this.currentStep++; if (this.currentStep is TestStep.CharacterRequestedUpdate) this.currentStep++;
} }
private void PreFinalize(AddonEvent eventType, AddonArgs addonInfo) private void PreFinalize(AddonEvent eventType, AddonArgs addonInfo)
{ {
if (this.currentStep is TestStep.CharacterFinalize) this.currentStep++; if (this.currentStep is TestStep.CharacterFinalize) this.currentStep++;

View file

@ -2,12 +2,12 @@ using Dalamud.Game.ClientState.Aetherytes;
using Dalamud.Utility; using Dalamud.Utility;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for the Aetheryte List. /// Test setup for the Aetheryte List.
/// </summary> /// </summary>
internal class AetheryteListAgingStep : IAgingStep internal class AetheryteListSelfTestStep : ISelfTestStep
{ {
private int index = 0; private int index = 0;

View file

@ -4,12 +4,12 @@ using Dalamud.Game.Text.SeStringHandling;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for Chat. /// Test setup for Chat.
/// </summary> /// </summary>
internal class ChatAgingStep : IAgingStep internal class ChatSelfTestStep : ISelfTestStep
{ {
private int step = 0; private int step = 0;
private bool subscribed = false; private bool subscribed = false;

View file

@ -3,12 +3,12 @@ using Dalamud.Game.ClientState.Conditions;
using ImGuiNET; using ImGuiNET;
using Serilog; using Serilog;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for Condition. /// Test setup for Condition.
/// </summary> /// </summary>
internal class ConditionAgingStep : IAgingStep internal class ConditionSelfTestStep : ISelfTestStep
{ {
/// <inheritdoc/> /// <inheritdoc/>
public string Name => "Test Condition"; public string Name => "Test Condition";

View file

@ -12,12 +12,12 @@ using Lumina.Excel;
using Lumina.Excel.Sheets; using Lumina.Excel.Sheets;
using Serilog; using Serilog;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Tests for context menu. /// Tests for context menu.
/// </summary> /// </summary>
internal class ContextMenuAgingStep : IAgingStep internal class ContextMenuSelfTestStep : ISelfTestStep
{ {
private SubStep currentSubStep; private SubStep currentSubStep;

View file

@ -2,12 +2,12 @@
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for the DutyState service class. /// Test setup for the DutyState service class.
/// </summary> /// </summary>
internal class DutyStateAgingStep : IAgingStep internal class DutyStateSelfTestStep : ISelfTestStep
{ {
private bool subscribed = false; private bool subscribed = false;
private bool hasPassed = false; private bool hasPassed = false;

View file

@ -2,12 +2,12 @@ using Dalamud.Game.ClientState;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for Territory Change. /// Test setup for Territory Change.
/// </summary> /// </summary>
internal class EnterTerritoryAgingStep : IAgingStep internal class EnterTerritorySelfTestStep : ISelfTestStep
{ {
private readonly ushort territory; private readonly ushort territory;
private readonly string terriName; private readonly string terriName;
@ -15,11 +15,11 @@ internal class EnterTerritoryAgingStep : IAgingStep
private bool hasPassed = false; private bool hasPassed = false;
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="EnterTerritoryAgingStep"/> class. /// Initializes a new instance of the <see cref="EnterTerritorySelfTestStep"/> class.
/// </summary> /// </summary>
/// <param name="terri">The territory to check for.</param> /// <param name="terri">The territory to check for.</param>
/// <param name="name">Name to show.</param> /// <param name="name">Name to show.</param>
public EnterTerritoryAgingStep(ushort terri, string name) public EnterTerritorySelfTestStep(ushort terri, string name)
{ {
this.terriName = name; this.terriName = name;
this.territory = terri; this.territory = terri;

View file

@ -2,12 +2,12 @@ using Dalamud.Game.ClientState.Fates;
using Dalamud.Utility; using Dalamud.Utility;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for the Fate Table. /// Test setup for the Fate Table.
/// </summary> /// </summary>
internal class FateTableAgingStep : IAgingStep internal class FateTableSelfTestStep : ISelfTestStep
{ {
private byte index = 0; private byte index = 0;

View file

@ -2,12 +2,12 @@
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test of GameConfig. /// Test of GameConfig.
/// </summary> /// </summary>
internal class GameConfigAgingStep : IAgingStep internal class GameConfigSelfTestStep : ISelfTestStep
{ {
private bool started; private bool started;
private bool isStartedLegacy; private bool isStartedLegacy;

View file

@ -7,12 +7,12 @@ using Lumina.Text.Payloads;
using LSeStringBuilder = Lumina.Text.SeStringBuilder; using LSeStringBuilder = Lumina.Text.SeStringBuilder;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for the Gamepad State. /// Test setup for the Gamepad State.
/// </summary> /// </summary>
internal class GamepadStateAgingStep : IAgingStep internal class GamepadStateSelfTestStep : ISelfTestStep
{ {
/// <inheritdoc/> /// <inheritdoc/>
public string Name => "Test GamePadState"; public string Name => "Test GamePadState";

View file

@ -1,11 +1,11 @@
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test dedicated to handling of Access Violations. /// Test dedicated to handling of Access Violations.
/// </summary> /// </summary>
internal class HandledExceptionAgingStep : IAgingStep internal class HandledExceptionSelfTestStep : ISelfTestStep
{ {
/// <inheritdoc/> /// <inheritdoc/>
public string Name => "Test Handled Exception"; public string Name => "Test Handled Exception";

View file

@ -2,12 +2,12 @@ using Dalamud.Game.Gui;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for the Hover events. /// Test setup for the Hover events.
/// </summary> /// </summary>
internal class HoverAgingStep : IAgingStep internal class HoverSelfTestStep : ISelfTestStep
{ {
private bool clearedItem = false; private bool clearedItem = false;
private bool clearedAction = false; private bool clearedAction = false;

View file

@ -1,9 +1,9 @@
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Interface for test implementations. /// Interface for test implementations.
/// </summary> /// </summary>
internal interface IAgingStep internal interface ISelfTestStep
{ {
/// <summary> /// <summary>
/// Gets the name of the test. /// Gets the name of the test.

View file

@ -4,12 +4,12 @@ using Dalamud.Game.Text.SeStringHandling.Payloads;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for item payloads. /// Test setup for item payloads.
/// </summary> /// </summary>
internal class ItemPayloadAgingStep : IAgingStep internal class ItemPayloadSelfTestStep : ISelfTestStep
{ {
private SubStep currentSubStep; private SubStep currentSubStep;

View file

@ -2,12 +2,12 @@ using Dalamud.Game.ClientState.Keys;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for the Key State. /// Test setup for the Key State.
/// </summary> /// </summary>
internal class KeyStateAgingStep : IAgingStep internal class KeyStateSelfTestStep : ISelfTestStep
{ {
/// <inheritdoc/> /// <inheritdoc/>
public string Name => "Test KeyState"; public string Name => "Test KeyState";

View file

@ -2,12 +2,12 @@ using Dalamud.Game.ClientState;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for the login events. /// Test setup for the login events.
/// </summary> /// </summary>
internal class LoginEventAgingStep : IAgingStep internal class LoginEventSelfTestStep : ISelfTestStep
{ {
private bool subscribed = false; private bool subscribed = false;
private bool hasPassed = false; private bool hasPassed = false;

View file

@ -2,12 +2,12 @@ using Dalamud.Game.ClientState;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for the login events. /// Test setup for the login events.
/// </summary> /// </summary>
internal class LogoutEventAgingStep : IAgingStep internal class LogoutEventSelfTestStep : ISelfTestStep
{ {
private bool subscribed = false; private bool subscribed = false;
private bool hasPassed = false; private bool hasPassed = false;

View file

@ -2,14 +2,14 @@ using Dalamud.Data;
using Dalamud.Utility; using Dalamud.Utility;
using Lumina.Excel; using Lumina.Excel;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for Lumina. /// Test setup for Lumina.
/// </summary> /// </summary>
/// <typeparam name="T">ExcelRow to run test on.</typeparam> /// <typeparam name="T">ExcelRow to run test on.</typeparam>
/// <param name="isLargeSheet">Whether or not the sheet is large. If it is large, the self test will iterate through the full sheet in one frame and benchmark the time taken.</param> /// <param name="isLargeSheet">Whether or not the sheet is large. If it is large, the self test will iterate through the full sheet in one frame and benchmark the time taken.</param>
internal class LuminaAgingStep<T>(bool isLargeSheet) : IAgingStep internal class LuminaSelfTestStep<T>(bool isLargeSheet) : ISelfTestStep
where T : struct, IExcelRow<T> where T : struct, IExcelRow<T>
{ {
private int step = 0; private int step = 0;

View file

@ -5,12 +5,12 @@ using Dalamud.Game.MarketBoard;
using Dalamud.Game.Network.Structures; using Dalamud.Game.Network.Structures;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Tests the various market board events. /// Tests the various market board events.
/// </summary> /// </summary>
internal class MarketBoardAgingStep : IAgingStep internal class MarketBoardSelfTestStep : ISelfTestStep
{ {
private SubStep currentSubStep; private SubStep currentSubStep;
private bool eventsSubscribed; private bool eventsSubscribed;

View file

@ -6,12 +6,12 @@ using Dalamud.Game.Text.SeStringHandling.Payloads;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Tests for nameplates. /// Tests for nameplates.
/// </summary> /// </summary>
internal class NamePlateAgingStep : IAgingStep internal class NamePlateSelfTestStep : ISelfTestStep
{ {
private SubStep currentSubStep; private SubStep currentSubStep;
private Dictionary<ulong, int>? updateCount; private Dictionary<ulong, int>? updateCount;

View file

@ -6,12 +6,12 @@ using ImGuiNET;
using LSheets = Lumina.Excel.Sheets; using LSheets = Lumina.Excel.Sheets;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for NounProcessor. /// Test setup for NounProcessor.
/// </summary> /// </summary>
internal class NounProcessorAgingStep : IAgingStep internal class NounProcessorSelfTestStep : ISelfTestStep
{ {
private NounTestEntry[] tests = private NounTestEntry[] tests =
[ [

View file

@ -3,12 +3,12 @@ using Dalamud.Game.Gui.PartyFinder.Types;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for Party Finder events. /// Test setup for Party Finder events.
/// </summary> /// </summary>
internal class PartyFinderAgingStep : IAgingStep internal class PartyFinderSelfTestStep : ISelfTestStep
{ {
private bool subscribed = false; private bool subscribed = false;
private bool hasPassed = false; private bool hasPassed = false;

View file

@ -5,12 +5,12 @@ using ImGuiNET;
using Lumina.Text.ReadOnly; using Lumina.Text.ReadOnly;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for SeStringEvaluator. /// Test setup for SeStringEvaluator.
/// </summary> /// </summary>
internal class SeStringEvaluatorAgingStep : IAgingStep internal class SeStringEvaluatorSelfTestStep : ISelfTestStep
{ {
private int step = 0; private int step = 0;

View file

@ -8,12 +8,12 @@ using FFXIVClientStructs.FFXIV.Client.UI.Misc;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for SheetRedirectResolver. /// Test setup for SheetRedirectResolver.
/// </summary> /// </summary>
internal class SheetRedirectResolverAgingStep : IAgingStep internal class SheetRedirectResolverSelfTestStep : ISelfTestStep
{ {
private RedirectEntry[] redirects = private RedirectEntry[] redirects =
[ [

View file

@ -4,12 +4,12 @@ using Dalamud.Game.ClientState.Objects.Types;
using ImGuiNET; using ImGuiNET;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for targets. /// Test setup for targets.
/// </summary> /// </summary>
internal class TargetAgingStep : IAgingStep internal class TargetSelfTestStep : ISelfTestStep
{ {
private int step = 0; private int step = 0;

View file

@ -1,11 +1,11 @@
using Dalamud.Game.Gui.Toast; using Dalamud.Game.Gui.Toast;
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test setup for toasts. /// Test setup for toasts.
/// </summary> /// </summary>
internal class ToastAgingStep : IAgingStep internal class ToastSelfTestStep : ISelfTestStep
{ {
/// <inheritdoc/> /// <inheritdoc/>
public string Name => "Test Toasts"; public string Name => "Test Toasts";

View file

@ -1,18 +1,18 @@
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps; namespace Dalamud.Interface.Internal.Windows.SelfTest.Steps;
/// <summary> /// <summary>
/// Test that waits N frames. /// Test that waits N frames.
/// </summary> /// </summary>
internal class WaitFramesAgingStep : IAgingStep internal class WaitFramesSelfTestStep : ISelfTestStep
{ {
private readonly int frames; private readonly int frames;
private int cFrames; private int cFrames;
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="WaitFramesAgingStep"/> class. /// Initializes a new instance of the <see cref="WaitFramesSelfTestStep"/> class.
/// </summary> /// </summary>
/// <param name="frames">Amount of frames to wait.</param> /// <param name="frames">Amount of frames to wait.</param>
public WaitFramesAgingStep(int frames) public WaitFramesSelfTestStep(int frames)
{ {
this.frames = frames; this.frames = frames;
this.cFrames = frames; this.cFrames = frames;