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