Skip to content

Commit ad083b4

Browse files
committed
add: test audio test tool kit
1 parent a696371 commit ad083b4

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System.IO;
2+
using NUnit.Framework;
3+
4+
namespace Tests.EditMode
5+
{
6+
public class SoundEnumFilesTests
7+
{
8+
private const string Sound2DPath = "Assets/Code/Services/SFX/Sound/Sound2DType.cs";
9+
private const string Sound3DPath = "Assets/Code/Services/SFX/Sound/Sound3DType.cs";
10+
private const string MusicPath = "Assets/Code/Services/SFX/Music/MusicType.cs";
11+
12+
[Test]
13+
public void Sound2DType_EnumFile_ShouldExist()
14+
{
15+
Assert.IsTrue(File.Exists(Sound2DPath), $"Enum file not found: {Sound2DPath}");
16+
}
17+
18+
[Test]
19+
public void Sound3DType_EnumFile_ShouldExist()
20+
{
21+
Assert.IsTrue(File.Exists(Sound3DPath), $"Enum file not found: {Sound3DPath}");
22+
}
23+
24+
[Test]
25+
public void MusicType_EnumFile_ShouldExist()
26+
{
27+
Assert.IsTrue(File.Exists(MusicPath), $"Enum file not found: {MusicPath}");
28+
}
29+
}
30+
}

Assets/Tests/EditMode/SoundEnumFilesTests.cs.meta

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System.IO;
2+
using NUnit.Framework;
3+
4+
namespace Tests.EditMode
5+
{
6+
public class VibrationEnumFileTests
7+
{
8+
private const string EnumOutPutPath = "Assets/Code/Services/SFX/Vibration/VibrationType.cs";
9+
10+
[Test]
11+
public void VibrationEnumFile_ShouldExist()
12+
{
13+
Assert.IsTrue(File.Exists(EnumOutPutPath),
14+
$"Enum file not found at path: {EnumOutPutPath}");
15+
}
16+
}
17+
}

Assets/Tests/EditMode/VibrationEnumFileTests.cs.meta

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)