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
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
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