예제 #1
0
        public void ValidateMatchesCache_WithMismatchedBuilder_Throws()
        {
            var cache   = new EntityQueryCache(1);
            var builder = new EntityQueryBuilder().WithAll <EcsTestTag>();
            var index   = cache.CreateCachedQuery(0, k_DummyGroup, ref builder, null, 0);

            var anotherBuilder = new EntityQueryBuilder();

            Assert.IsFalse(builder.ShallowEquals(ref anotherBuilder));

            Assert.Throws <InvalidOperationException>(() => cache.ValidateMatchesCache(index, ref anotherBuilder, null, 0));
        }