Class Is
NUnit allows you to write test assertions in a more descriptive and human readable way using the Assert.That mechanism, where the first parameter is an object under test and the second parameter describes conditions that the object has to meet.
We have extended NUnit API with a custom constraint type and declared an overlay Is class. To resolve ambiguity between the original implementation and the custom one you must explicitly declare it with a using statement or via addressing through the full type name UnityEngine.TestTools.Constraints.Is
.
네임스페이스: UnityEngine.TestTools.Constraints
어셈블리: solution.dll
구문
public class Is : NUnit.Framework.Is
메서드
이름 | 설명 |
---|---|
AllocatingGCMemory() | A constraint type that invokes the delegate you provide as the parameter of Assert.That and checks whether it causes any GC memory allocations. |