File tree Expand file tree Collapse file tree
TestProjects/UnityMCPTests/Assets/Tests/EditMode/Tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -254,8 +254,9 @@ public void ClipCreate_MissingPath_ReturnsError()
254254 [ Test ]
255255 public void ClipGetInfo_ReturnsClipData ( )
256256 {
257- string clipPath = $ "{ TempRoot } /InfoClip_{ Guid . NewGuid ( ) : N} .anim";
258- var clip = new AnimationClip { name = "InfoClip" , frameRate = 30f } ;
257+ string clipName = $ "InfoClip_{ Guid . NewGuid ( ) : N} ";
258+ string clipPath = $ "{ TempRoot } /{ clipName } .anim";
259+ var clip = new AnimationClip { name = clipName , frameRate = 30f } ;
259260 var settings = AnimationUtility . GetAnimationClipSettings ( clip ) ;
260261 settings . loopTime = true ;
261262 settings . stopTime = 1.5f ;
@@ -273,7 +274,7 @@ public void ClipGetInfo_ReturnsClipData()
273274
274275 var data = result [ "data" ] as JObject ;
275276 Assert . IsNotNull ( data ) ;
276- Assert . AreEqual ( "InfoClip" , data [ "name" ] . ToString ( ) ) ;
277+ Assert . AreEqual ( clipName , data [ "name" ] . ToString ( ) ) ;
277278 Assert . AreEqual ( 30f , data . Value < float > ( "frameRate" ) , 0.01f ) ;
278279 Assert . IsTrue ( data . Value < bool > ( "isLooping" ) ) ;
279280 }
You can’t perform that action at this time.
0 commit comments