using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

using static MPStudio.Note;
namespace MPStudio{
//Author: SkyAllen Email: 894982165@qq.com Website: www.ytn0.com
public class Tunit
{

    public static void TrueIs(bool condition ,string msg="")
    {
         passert(condition,msg);
        
    }

    public static void FalseIs(bool condition, string msg="")
    {
        if (condition == false) return;
        passert(false,msg);
    }
    
    
    /// <summary>
    /// 断言两个对象相等（使用 Equals 方法比较）
    /// </summary>
    public static void EqualIs(object a, object b, string message = "")
    {
        if (a.Equals(b)) return;
        
        passert(false,message);
    }

    /// <summary>
    /// 断言 a 小于 b（仅支持 IComparable 类型，如 int, float, double）
    /// </summary>
    public static void LessIs(IComparable a, IComparable b, string message = "")
    {
        if (a.CompareTo(b) < 0) return;
        passert(false,message);
    }

    /// <summary>
    /// 断言 a 大于 b（仅支持 IComparable 类型）
    /// </summary>
    public static void BigIs(IComparable a, IComparable b, string message = "")
    {
        if (a.CompareTo(b) > 0) return;
        passert(false,message);
    }
    
    
    
}
}