Skip to content

Commit f730ebc

Browse files
author
Sviridov Yaroslav
committed
Fix gold
1 parent 7e5f1ad commit f730ebc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

resharper/resharper-unity/test/data/Unity/CSharp/Intentions/QuickFixes/PreferGenericMethodOverload/Availability/AllScopedTest.cs.gold

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class Test01
2222

2323
public void Method2(GameObject o)
2424
{
25-
|o.AddComponent(|"SomethingElse"|(3))|(2);
25+
o.|AddComponent|(2)(|"SomethingElse"|(3));
2626
ScriptableObject.CreateInstance(|"ScriptableThing"|(4));
2727
}
2828
}

resharper/resharper-unity/test/data/Unity/CSharp/Intentions/QuickFixes/PreferGenericMethodOverload/Availability/GetComponentUnavailableDueToGenericClass.cs.gold

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ namespace DefaultNamespace
1111
{
1212
public void Test(GameObject go)
1313
{
14-
go.AddComponent("|Foo|(1)");
14+
go.|AddComponent|(1)("|Foo|(2)");
1515
}
1616
}
1717
}
1818
------------------------------------------------
1919
0: Type parameter 'T' is never used
2020
QUICKFIXES:
2121
Remove redundant type parameter 'T'
22-
1: Incorrect number of type parameters in reference to class 'DefaultNamespace.Foo<T>'
22+
1: Method 'UnityEngine.GameObject.AddComponent(string)' is obsolete: GameObject.AddComponent with string argument has been deprecated. Use GameObject.AddComponent<T>() instead. (UnityUpgradable).
23+
NO QUICKFIXES
24+
2: Incorrect number of type parameters in reference to class 'DefaultNamespace.Foo<T>'
2325
NO QUICKFIXES

0 commit comments

Comments
 (0)