mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Write GetName/SetName tests
This commit is contained in:
@@ -518,7 +518,7 @@ namespace SabreTools.DatItems
|
||||
/// <inheritdoc/>
|
||||
public override string? GetName()
|
||||
{
|
||||
if (NameKey != null)
|
||||
if (!string.IsNullOrEmpty(NameKey))
|
||||
return GetStringFieldValue(NameKey);
|
||||
|
||||
return null;
|
||||
@@ -527,7 +527,7 @@ namespace SabreTools.DatItems
|
||||
/// <inheritdoc/>
|
||||
public override void SetName(string? name)
|
||||
{
|
||||
if (NameKey != null)
|
||||
if (!string.IsNullOrEmpty(NameKey))
|
||||
SetFieldValue(NameKey, name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user