using System.Collections.Generic; using System.Numerics; using AcDream.App.Rendering.Wb; using AcDream.Core.Meshing; using Xunit; namespace AcDream.Core.Tests.Rendering.Wb; public class EntityClassificationCacheTests { [Fact] public void TryGet_EmptyCache_ReturnsFalse() { var cache = new EntityClassificationCache(); bool found = cache.TryGet(entityId: 42, out var entry); Assert.False(found); Assert.Null(entry); } private static CachedBatch MakeCachedBatch( uint ibo, uint firstIndex, int indexCount, ulong texHandle) { var key = new GroupKey( Ibo: ibo, FirstIndex: firstIndex, BaseVertex: 0, IndexCount: indexCount, BindlessTextureHandle: texHandle, TextureLayer: 0, Translucency: TranslucencyKind.Opaque); return new CachedBatch(key, texHandle, Matrix4x4.Identity); } }