mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
33 lines
531 B
C#
33 lines
531 B
C#
using AssetRipper.SourceGenerated.Extensions;
|
|
|
|
namespace AssetRipper.Tests;
|
|
|
|
internal class MeshDataTests
|
|
{
|
|
[Test]
|
|
public void AccessingNullUV2DoesNotThrow()
|
|
{
|
|
MeshData meshData = MeshData.CreateTriangleMesh() with
|
|
{
|
|
UV2 = null
|
|
};
|
|
Assert.DoesNotThrow(() =>
|
|
{
|
|
meshData.TryGetUV2AtIndex(0);
|
|
});
|
|
}
|
|
|
|
[Test]
|
|
public void AccessingEmptyUV2DoesNotThrow()
|
|
{
|
|
MeshData meshData = MeshData.CreateTriangleMesh() with
|
|
{
|
|
UV2 = []
|
|
};
|
|
Assert.DoesNotThrow(() =>
|
|
{
|
|
meshData.TryGetUV2AtIndex(0);
|
|
});
|
|
}
|
|
}
|