Search Issue Tracker

Won't Fix

Votes

7

Found in

2017.1.0f1

Issue ID

925132

Regression

No

[Unity Test Tools] Examples contain obsolete 'ExpectedException' attribute

Scene Management

-

To reproduce:
1. Open any Unity project
2. Import "Unity Test Tools" asset

Desired outcome: "Unity Test Tools" does not contain the obsolete 'ExpectedException' attribute, and an error message is not thrown when the asset is loaded.
Actual result: "SampleTests.cs" script contains obsolete 'ExpectedException' attribute, thus "Are you missing an assembly reference?" error is thrown in the Console window.

Reproduced with 5.6.0b3, 5.6.2p1, 2017.1.0a1, 2017.1.0f1, 2017.2.0b1
Not reproduced with 5.3, 5.4, 5.5 because Unity updated to NUnit 3 in Unity 5.6.

Note: The attribute was removed in Unity 5.6 when Unity updated to NUnit 3.

________________________________________________________________

The Unity Test Tools package is obsolete and doesn't exist in the Asset Store anymore. Its functionality has been replaced by the Unity Test Runner feature inside the actual engine.

Comments (4)

  1. shubhamswaraj2021

    Aug 18, 2020 16:01

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

  2. tyron0099

    May 16, 2020 13:26

  3. Snake9

    Oct 19, 2017 14:52

    Obviously reproduced with 5.6.3p2.
    You can solve this by replacing the whole method "public void ExpectedExceptionTest()" by :

    [Test]
    public void ExpectedExceptionTest()
    {
    Assert.Throws<ArgumentException> (delegate() {
    throw new ArgumentException ("expected message");
    });
    }

  4. caldiar

    Aug 17, 2017 14:33

    Reproduced with version 2017.1.0f3

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.