Add Source test

This commit is contained in:
Matt Nadareski
2025-01-08 14:24:03 -05:00
parent ef77d3c4da
commit 13fcb1b9ed
2 changed files with 26 additions and 6 deletions

View File

@@ -10,12 +10,12 @@ namespace SabreTools.DatItems
/// <summary>
/// Source index
/// </summary>
public int Index { get; }
public readonly int Index;
/// <summary>
/// Source name
/// </summary>
public string? Name { get; }
public readonly string? Name;
/// <summary>
/// Constructor
@@ -33,10 +33,7 @@ namespace SabreTools.DatItems
/// <summary>
/// Clone the current object
/// </summary>
public object Clone()
{
return new Source(Index, Name);
}
public object Clone() => new Source(Index, Name);
#endregion
}