Class IsTexture
Provides constraints for texture assertions in tests.
Inherited Members
Namespace: UnityEngine.TestTools.Graphics
Assembly: UnityEngine.TestTools.Graphics.dll
Syntax
public static class IsTexture
Methods
EqualTo(Texture2D)
Returns a constraint that checks if a texture is equal to the expected texture.
Declaration
public static EqualToTextureConstraint EqualTo(Texture2D expected)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2D | expected | The expected texture to compare against. |
Returns
| Type | Description |
|---|---|
| EqualToTextureConstraint | An EqualToTextureConstraint for the expected texture. |