Skip to content

Commit 41b6226

Browse files
committed
Fix Constraint examples
1 parent c2f91bb commit 41b6226

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Assets/APIExamples/Tests/Runtime/NUnit/ConstraintExample.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ public void EqualConstraint_日時比較にWithin修飾子を使用_誤差を許
129129
}
130130

131131
[Test]
132-
public void EqualConstraint_配列が等しいこと()
132+
public void EqualConstraint_コレクションが等しいこと()
133133
{
134-
var actual = new[] { "Katsuro", "Jenny", "Lindsay" };
134+
var actual = new List<string> { "Katsuro", "Jenny", "Lindsay" };
135135

136-
Assert.That(actual, Is.EqualTo(new[] { "Katsuro", "Jenny", "Lindsay" }));
136+
Assert.That(actual, Is.EqualTo(new[] { "Katsuro", "Jenny", "Lindsay" })); // Listを配列で検証可能
137137
// 失敗時メッセージ例:
138138
// Expected and actual are both <System.String[3]>
139139
// Values differ at index [1]
@@ -309,7 +309,7 @@ public void HasCount_コレクションの個数を検証()
309309
}
310310

311311
[Test]
312-
public void HasLength_配列の個数を検証()
312+
public void HasLength_コレクションの要素数を検証()
313313
{
314314
var actual = new[] { 2, 3, 5, 6 };
315315
Assert.That(actual, Has.Length.EqualTo(4));
@@ -365,7 +365,7 @@ public void UniqueItemsConstraint_重複する要素がないこと()
365365
}
366366

367367
[TestFixture]
368-
public class 比較
368+
public class 数値
369369
{
370370
[Test]
371371
public void GreaterThanConstraint_より大きい()
@@ -424,7 +424,7 @@ public void RangeConstraint_範囲内()
424424
}
425425

426426
[TestFixture]
427-
public class 合成
427+
public class オペレーター
428428
{
429429
[Test]
430430
public void AndConstraint_AND条件()
@@ -469,7 +469,7 @@ public void OrConstraint_OR条件()
469469
}
470470

471471
[TestFixture]
472-
public class 条件
472+
public class 状態
473473
{
474474
[Test]
475475
public void EmptyConstraint_空であること()

0 commit comments

Comments
 (0)