Version: 5.6
public static void AreEqual (T expected, T actual);
public static void AreEqual (T expected, T actual, string message);
public static void AreEqual (T expected, T actual, string message, IEqualityComparer<T> comparer);

説明

値が等しいアサート。comparer が指定されない場合、EqualityComparer&lt;T&gt;.デフォルトが使用されます。

public class AssertionExampleClass : MonoBehaviour
{
    void Update()
    {
        //Make sure the Game Object is always tagged as "Player"
        Assert.AreEqual("Player", gameObject.tag);
    }
}