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.
Comments (4)
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
- Timeline section stops rendering after restoring Profiler Window modules
- Cursor image does not update when Cursor.SetCursor is called again with CursorMode.Auto
- Crash on do_runtime_invoke when reopening a specific project after failing to build it
- Animations change speed when rigidbody is added
- Low FPS persists when re-entering Play mode after an extended session in a specific project
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