mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Field removal to their own classes
This commit is contained in:
@@ -8,24 +8,6 @@ namespace SabreTools.Test.DatItems
|
||||
{
|
||||
public class DatItemToolTests
|
||||
{
|
||||
[Fact]
|
||||
public void RemoveFieldsDatItemTest()
|
||||
{
|
||||
var datItem = CreateDatItem();
|
||||
var fields = new List<DatItemField> { DatItemField.Name };
|
||||
DatItemTool.RemoveFields(datItem, datItemFields: fields);
|
||||
Assert.Null(datItem.GetName());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RemoveFieldsMachineTest()
|
||||
{
|
||||
var datItem = CreateDatItem();
|
||||
var fields = new List<MachineField> { MachineField.Name };
|
||||
DatItemTool.RemoveFields(datItem, machineFields: fields);
|
||||
Assert.Null(datItem.Machine.Name);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ReplaceFieldsDatItemTest()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user