mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add SetModifiers test
This commit is contained in:
@@ -249,6 +249,24 @@ namespace SabreTools.DatFiles.Test
|
||||
|
||||
#endregion
|
||||
|
||||
#region SetModifiers
|
||||
|
||||
[Fact]
|
||||
public void SetModifiersTest()
|
||||
{
|
||||
DatModifiers datModifiers = new DatModifiers();
|
||||
datModifiers.AddExtension = ".new";
|
||||
|
||||
DatFile? datFile = new Formats.Logiqx(datFile: null, deprecated: false);
|
||||
datFile.Modifiers.AddExtension = ".old";
|
||||
|
||||
datFile.SetModifiers(datModifiers);
|
||||
Assert.NotNull(datFile.Modifiers);
|
||||
Assert.Equal(".new", datFile.Modifiers.AddExtension);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ResetDictionary
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user