2024-08-02 16:30:21 +00:00
|
|
|
using Questionable.Model.Questing;
|
2024-07-21 21:10:16 +00:00
|
|
|
using Questionable.QuestPathGenerator;
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
namespace QuestPathGenerator.Tests;
|
|
|
|
|
|
|
|
public sealed class QuestGeneratorTest
|
|
|
|
{
|
|
|
|
[Fact]
|
|
|
|
public void SyntaxNodeListWithNullValues()
|
|
|
|
{
|
|
|
|
var complexCombatData = new ComplexCombatData
|
|
|
|
{
|
|
|
|
DataId = 47,
|
|
|
|
IgnoreQuestMarker = true,
|
|
|
|
MinimumKillCount = 1,
|
|
|
|
};
|
|
|
|
|
|
|
|
var list =
|
|
|
|
RoslynShortcuts.SyntaxNodeList(
|
|
|
|
RoslynShortcuts.AssignmentList(nameof(ComplexCombatData.CompletionQuestVariablesFlags),
|
|
|
|
complexCombatData.CompletionQuestVariablesFlags)).ToList();
|
|
|
|
|
|
|
|
Assert.Empty(list);
|
|
|
|
}
|
|
|
|
}
|