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
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.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
shubhamswaraj2021
Aug 18, 2020 16:01
good one <a href="https://www.lyricsauto.com">lyricsauto</a>
tyron0099
May 16, 2020 13:26
https://google.com
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");
});
}
caldiar
Aug 17, 2017 14:33
Reproduced with version 2017.1.0f3