-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemapVariablesTest.cs
More file actions
64 lines (53 loc) Β· 1.75 KB
/
Copy pathRemapVariablesTest.cs
File metadata and controls
64 lines (53 loc) Β· 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
namespace Models.Tests;
public class RemapVariablesTest
{
[Fact]
public void RemapVariables_DefaultConstructor_InitializesProperties()
{
var remapVariables = new RemapVariables
{
SourceMapType = DrumMapType.GuitarPro,
TargetMapType = DrumMapType.LogicPro,
MidiPath = "test.mid"
};
Assert.Equal(DrumMapType.GuitarPro, remapVariables.SourceMapType);
Assert.Equal(DrumMapType.LogicPro, remapVariables.TargetMapType);
Assert.Equal("test.mid", remapVariables.MidiPath);
}
[Fact]
public void RemapVariables_CanSetSourceMapType()
{
var remapVariables = new RemapVariables
{
SourceMapType = DrumMapType.LogicPro,
TargetMapType = DrumMapType.GuitarPro,
MidiPath = "file.mid"
};
remapVariables.SourceMapType = DrumMapType.GuitarPro;
Assert.Equal(DrumMapType.GuitarPro, remapVariables.SourceMapType);
}
[Fact]
public void RemapVariables_CanSetTargetMapType()
{
var remapVariables = new RemapVariables
{
SourceMapType = DrumMapType.GuitarPro,
TargetMapType = DrumMapType.LogicPro,
MidiPath = "file.mid"
};
remapVariables.TargetMapType = DrumMapType.GuitarPro;
Assert.Equal(DrumMapType.GuitarPro, remapVariables.TargetMapType);
}
[Fact]
public void RemapVariables_CanSetMidiPath()
{
var remapVariables = new RemapVariables
{
SourceMapType = DrumMapType.GuitarPro,
TargetMapType = DrumMapType.LogicPro,
MidiPath = "old.mid"
};
remapVariables.MidiPath = "new.mid";
Assert.Equal("new.mid", remapVariables.MidiPath);
}
}