-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-evaluate extra data in ActionType
- Loading branch information
Showing
8 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using ME3Tweaks.Wwiser.BankConversion; | ||
using ME3Tweaks.Wwiser.Model.ParameterNode; | ||
using Action = ME3Tweaks.Wwiser.Model.Hierarchy.Action; | ||
|
||
namespace ME3Tweaks.Wwiser.Tests.ConvertTests; | ||
|
||
public class ActionTests | ||
{ | ||
[Test] | ||
public void Convert56to134_Works() | ||
{ | ||
var from = new BankSerializationContext(56); | ||
var to = new BankSerializationContext(134); | ||
|
||
var data = TestData.GetTestDataBytes(@"Convert", @"Action", @"SetPitch_V56.bin"); | ||
var (_, result) = TestHelpers.Deserialize<Action>(data, 56); | ||
|
||
var newData = TestHelpers.Serialize(result, 134); | ||
Assert.That(newData, Is.EquivalentTo(TestData.GetTestDataBytes(@"Convert", @"Action", @"SetPitch_V134.bin"))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+33 Bytes
ME3Tweaks.Wwiser.Tests/TestData/Convert/Action/SetPitch_V134.bin.bak
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters