using AcDream.Core.Ui; namespace AcDream.Core.Tests.Ui; public sealed class RetailMessagesTests { [Fact] public void CannotBeUsed_FormatsRetailLiteral() { // Retail acclient_2013_pseudo_c.txt:1033115 (data_7e2a70): // "The %s cannot be used" // Interpolated form with the entity name where %s sat. Assert.Equal("The Holtburg cannot be used", RetailMessages.CannotBeUsed("Holtburg")); } [Fact] public void CantBePickedUp_FormatsRetailLiteral() { // Retail acclient_2013_pseudo_c.txt:401589 sprintf: // "The %s can't be picked up!" Assert.Equal("The Holtburg can't be picked up!", RetailMessages.CantBePickedUp("Holtburg")); } [Fact] public void CannotPickUpCreatures_IsExactRetailLiteral() { // Retail acclient_2013_pseudo_c.txt:1033034 (data_7e22b4): // "You cannot pick up creatures!" // Constant; no placeholder. Assert.Equal("You cannot pick up creatures!", RetailMessages.CannotPickUpCreatures); } [Fact] public void CannotBeUsedWith_FormatsRetailLiteral() { // Retail acclient_2013_pseudo_c.txt:1024669 (data_7cc834): // "Cannot be used with %s" Assert.Equal("Cannot be used with Lockpick", RetailMessages.CannotBeUsedWith("Lockpick")); } [Fact] public void CannotBePickedUp_FormatsFormalRetailVariant() { // Retail acclient_2013_pseudo_c.txt:1033033 (data_7e227c): // "The %s cannot be picked up!" // FORMAL variant — distinct from informal CantBePickedUp. Assert.Equal("The Holtburg cannot be picked up!", RetailMessages.CannotBePickedUp("Holtburg")); } [Fact] public void CannotBeUsedWhileOnHook_HooksOff_PreservesTrailingNewline() { // Retail acclient_2013_pseudo_c.txt:1029591 (data_7d1f68). // Trailing \n is part of the retail literal. string actual = RetailMessages.CannotBeUsedWhileOnHook_HooksOff("Chest"); Assert.Equal( "The Chest cannot be used while on a hook, use the '@house hooks on' command to make the hook openable.\n", actual); Assert.EndsWith("\n", actual); } [Fact] public void CannotBeUsedWhileOnHook_NotOwner_PreservesTrailingNewline() { // Retail acclient_2013_pseudo_c.txt:1030063 (data_7d5f30). string actual = RetailMessages.CannotBeUsedWhileOnHook_NotOwner("Chest"); Assert.Equal( "The Chest cannot be used while on a hook and only the owner may open the hook.\n", actual); Assert.EndsWith("\n", actual); } }