docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ImageAssertTests

    Inheritance
    object
    ImageAssertTests
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.TestTools.Graphics.Tests
    Assembly: UnityEngine.TestTools.Graphics.Tests.dll
    Syntax
    public class ImageAssertTests

    Methods

    AreEqualAsync_WithNullCamera()

    Declaration
    [UnityTest]
    public IEnumerator AreEqualAsync_WithNullCamera()
    Returns
    Type Description
    IEnumerator

    AreEqual_DestinationTextureResolution()

    Declaration
    [Test]
    public void AreEqual_DestinationTextureResolution()

    AreEqual_TexturesAfterResize()

    Declaration
    [Test]
    public void AreEqual_TexturesAfterResize()

    AreEqual_WidthDifferentSizeImages_ThrowsAssertionException()

    Declaration
    [Test]
    public void AreEqual_WidthDifferentSizeImages_ThrowsAssertionException()

    AreEqual_WithIdenticalImage_Succeeds()

    Declaration
    [Test]
    public void AreEqual_WithIdenticalImage_Succeeds()

    AreEqual_WithNullActualImage_ThrowsArgumentNullException()

    Declaration
    [Test]
    public void AreEqual_WithNullActualImage_ThrowsArgumentNullException()

    AreEqual_WithNullCamera_ThrowsArgumentNullException()

    Declaration
    [Test]
    public void AreEqual_WithNullCamera_ThrowsArgumentNullException()

    AreEqual_WithNullCameras_ThrowsArgumentNullException()

    Declaration
    [Test]
    public void AreEqual_WithNullCameras_ThrowsArgumentNullException()

    AreEqual_WithSlightlyDifferentImages_SucceedsWithAppropriateTolerance()

    Declaration
    [Test]
    public void AreEqual_WithSlightlyDifferentImages_SucceedsWithAppropriateTolerance()

    AreEqual_WithTotallyDifferentImages_ThrowsAssertionException()

    Declaration
    [Test]
    public void AreEqual_WithTotallyDifferentImages_ThrowsAssertionException()

    LargeHDRTextureWithRandomNaNReturnsError()

    Declaration
    [Test]
    public void LargeHDRTextureWithRandomNaNReturnsError()

    PerPixelTest(ImageComparisonSettings, Color32, Color32, int, bool)

    Declaration
    [Test]
    [TestCaseSource(typeof(ImageAssertTests.PerPixelTestSource), "TestCases")]
    public void PerPixelTest(ImageComparisonSettings settings, Color32 initColor, Color32 alterColor, int alterCount, bool mustThrow)
    Parameters
    Type Name Description
    ImageComparisonSettings settings
    Color32 initColor
    Color32 alterColor
    int alterCount
    bool mustThrow

    TextureWithNaNReturnsError()

    Declaration
    [Test]
    public void TextureWithNaNReturnsError()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)