> [!Note] > **Developer Note** > Now developers will only need to build/run the Application project instead of everything. > When adding new projects, make sure to: > 1. Add a reference to that project in the Application project. > 2. Add the dll file to the Distribution/Data/assemblies.json file ### Summary - Adds an application project - Consolidates process restarts to use `Core.Kill(true)` - Removes some old messaging, for example processor optimization - Fixes missing build cleanup
24 lines
No EOL
652 B
C#
24 lines
No EOL
652 B
C#
using Server.Engines.Help;
|
|
using Server.Network;
|
|
using Server.Tests;
|
|
using Server.Tests.Network;
|
|
using Xunit;
|
|
|
|
namespace UOContent.Tests;
|
|
|
|
public class TestHelpTopicPacket
|
|
{
|
|
[Theory]
|
|
[InlineData(HelpTopic.Healing, false)]
|
|
[InlineData(HelpTopic.EmptyingBowl, true)]
|
|
public void TestDisplayHelpTopic(int topic, bool display)
|
|
{
|
|
var expected = new DisplayHelpTopic(topic, display).Compile();
|
|
|
|
var ns = PacketTestUtilities.CreateTestNetState();
|
|
ns.SendDisplayHelpTopic(topic, display);
|
|
|
|
var result = ns.SendPipe.Reader.AvailableToRead();
|
|
AssertThat.Equal(result, expected);
|
|
}
|
|
} |