summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tests/Particles/AssertionModifier.cs
blob: ff23d8b5f8d7318cd4b5f0b2542697625df558ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//using System;
//using MonoGame.Extended.Particles;
//using MonoGame.Extended.Particles.Modifiers;
//using Xunit;

//namespace MonoGame.Extended.Tests.Particles
//{
//    internal class AssertionModifier : Modifier
//    {
//        private readonly Predicate<Particle> _predicate;

//        public AssertionModifier(Predicate<Particle> predicate)
//        {
//            _predicate = predicate;
//        }

//        public override unsafe void Update(float elapsedSeconds, ParticleBuffer.ParticleIterator iterator)
//        {
//            while (iterator.HasNext) {
//                var particle = iterator.Next();
//                Assert.IsTrue(_predicate(*particle));
//            }
//        }
//    }
//}