//
// CharacterTests.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Xunit.Abstractions;
namespace NosSmooth.Game.Tests.Modules;
///
/// Test for Game.Character.
///
public class CharacterTests
{
private readonly ITestOutputHelper _testOutputHelper;
///
/// Initializes a new instance of the class.
///
/// The test output helper.
public CharacterTests(ITestOutputHelper testOutputHelper)
{
_testOutputHelper = testOutputHelper;
}
///
/// Tests character initialization.
///
/// A representing the asynchronous operation.
[Fact]
public async Task Test_Initialize()
{
var data = PacketFileClient.CreateFor("init", _testOutputHelper);
await data.Client.ExecuteUntilLabelAsync("AFTER_INITIALIZED");
data.Game.Character.ShouldNotBeNull();
data.Game.Character.PlayerLevel.ShouldNotBeNull();
data.Game.Character.PlayerLevel.Lvl.ShouldBe((short)99);
data.Game.Character.JobLevel.ShouldNotBeNull();
data.Game.Character.JobLevel.Lvl.ShouldBe((short)20);
}
}