using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine.Assertions;
public static class AssertUtils
{
[Conditional( "UNITY_ASSERTIONS" )]
public static void IsNullOrEmpty<T>( this IList<T> self )
{
Assert.IsTrue( self == null || self.Count == 0 );
}
[Conditional( "UNITY_ASSERTIONS" )]
public static void IsNullOrEmpty<T>( this IList<T> self, string message )
{
Assert.IsTrue( self == null || self.Count == 0, message );
}
}
AssertUtils.IsNullOrEmpty( new int[ 0 ] );
AssertUtils.IsNullOrEmpty( new int[ 1 ] );