public void TestSetGetActive() { Flex.Library lib = Flex.Init(Flex.FLEX_VERSION, ErrorCallback); Flex.SolverDesc desc = default(Flex.SolverDesc); Flex.SetSolverDescDefaults(ref desc); desc.maxParticles = 1000; desc.maxDiffuseParticles = 1000; Flex.Solver solver = Flex.CreateSolver(lib, ref desc); Flex.SetActiveCount(solver, 2); Flex.Buffer active = CreateBuffer(lib, 2, 1, new int[] { 2, 1 }); Flex.SetActive(solver, active); Assert.AreEqual(2, Flex.GetActiveCount(solver)); Flex.FreeBuffer(active); Flex.DestroySolver(solver); Flex.Shutdown(lib); }