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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
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