|
3 | 3 |
|
4 | 4 | namespace Silk.NET.SilkTouch.UnitTests; |
5 | 5 |
|
6 | | -[TestFixture] |
7 | 6 | public class ModUtilsTests |
8 | 7 | { |
9 | | - private static readonly (string Input, string EffectiveName, string Directory, string Remainder)[] |
10 | | - GetEffectiveNameTests = [ |
11 | | - ("hello/GL.gen.cs", "GL", "hello/", ".gen.cs"), |
12 | | - ("hello/GL.Manual.cs", "GL.Manual", "hello/", ".cs"), |
13 | | - ("hello/GL.Interfaces.gen.cs", "GL.Interfaces", "hello/", ".gen.cs") |
14 | | - ]; |
| 8 | + private static readonly ( |
| 9 | + string Input, |
| 10 | + string EffectiveName, |
| 11 | + string Directory, |
| 12 | + string Remainder |
| 13 | + )[] GetEffectiveNameTests = |
| 14 | + [ |
| 15 | + ("hello/GL.gen.cs", "GL", "hello/", ".gen.cs"), |
| 16 | + ("hello/GL.Manual.cs", "GL.Manual", "hello/", ".cs"), |
| 17 | + ("hello/GL.Interfaces.gen.cs", "GL.Interfaces", "hello/", ".gen.cs"), |
| 18 | + ]; |
15 | 19 |
|
16 | 20 | [Test] |
17 | 21 | public void GetEffectiveName( |
18 | | - [ValueSource(nameof(GetEffectiveNameTests))] (string Input, string EffectiveName, string Directory, string Remainder) testData) |
| 22 | + [ValueSource(nameof(GetEffectiveNameTests))] |
| 23 | + (string Input, string EffectiveName, string Directory, string Remainder) testData |
| 24 | + ) |
19 | 25 | { |
20 | | - ModUtils.GetEffectiveName(testData.Input, out var effectiveName, out var directory, out var remainder); |
| 26 | + ModUtils.GetEffectiveName( |
| 27 | + testData.Input, |
| 28 | + out var effectiveName, |
| 29 | + out var directory, |
| 30 | + out var remainder |
| 31 | + ); |
21 | 32 | Assert.That(effectiveName.ToString(), Is.EqualTo(testData.EffectiveName)); |
22 | 33 | Assert.That(directory.ToString(), Is.EqualTo(testData.Directory)); |
23 | 34 | Assert.That(remainder.ToString(), Is.EqualTo(testData.Remainder)); |
|
0 commit comments