ConstraintsExtensions.cs 398 B

1234567891011121314
  1. using NUnit.Framework.Constraints;
  2. namespace UnityEngine.TestTools.Constraints
  3. {
  4. public static class ConstraintExtensions
  5. {
  6. public static AllocatingGCMemoryConstraint AllocatingGCMemory(this ConstraintExpression chain)
  7. {
  8. var constraint = new AllocatingGCMemoryConstraint();
  9. chain.Append(constraint);
  10. return constraint;
  11. }
  12. }
  13. }