merge-fix(wave-b): dedupe BuildReference test helper (WP2+WP4 both added it)
Semantic collision git auto-merged: WP2 and WP4 each added a BuildReference helper to the DraftValidatorTests partial class (same param types -> CS0111). Kept one with the refId param name + default null, satisfying both call styles. Claude-Session: https://claude.ai/code/session_01LVneM3eh1UtJxEisFXgmox
This commit is contained in:
@@ -289,7 +289,7 @@ public sealed class DraftValidatorTests
|
|||||||
TagConfig = "{}",
|
TagConfig = "{}",
|
||||||
};
|
};
|
||||||
|
|
||||||
private static UnsTagReference BuildReference(string refId, string equipmentId, string tagId, string? overrideName) => new()
|
private static UnsTagReference BuildReference(string refId, string equipmentId, string tagId, string? overrideName = null) => new()
|
||||||
{
|
{
|
||||||
UnsTagReferenceId = refId,
|
UnsTagReferenceId = refId,
|
||||||
EquipmentId = equipmentId,
|
EquipmentId = equipmentId,
|
||||||
@@ -312,11 +312,6 @@ public sealed class DraftValidatorTests
|
|||||||
AccessLevel = TagAccessLevel.Read, TagConfig = "{}",
|
AccessLevel = TagAccessLevel.Read, TagConfig = "{}",
|
||||||
};
|
};
|
||||||
|
|
||||||
private static UnsTagReference BuildReference(string id, string equipmentId, string tagId, string? overrideName = null) => new()
|
|
||||||
{
|
|
||||||
UnsTagReferenceId = id, EquipmentId = equipmentId, TagId = tagId, DisplayNameOverride = overrideName,
|
|
||||||
};
|
|
||||||
|
|
||||||
/// <summary>A VirtualTag script using <c>{{equip}}/Speed</c> with no reference "Speed" on the equipment is
|
/// <summary>A VirtualTag script using <c>{{equip}}/Speed</c> with no reference "Speed" on the equipment is
|
||||||
/// a deploy error naming the equipment + the missing ref.</summary>
|
/// a deploy error naming the equipment + the missing ref.</summary>
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
Reference in New Issue
Block a user