ddb67d1c430ef26997751a68ed497a04b6a56271
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Animation / TSAnimation.cs
1 using global::System;
2 using NUnit.Framework;
3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6 using System.Threading.Tasks;
7
8 namespace Tizen.NUI.Devel.Tests
9 {
10     using static Tizen.NUI.Animation;
11     using tlog = Tizen.Log;
12
13     [TestFixture]
14     [Description("public/Animation/Animation")]
15     class PublicAnimationTest
16     {
17         private const string tag = "NUITEST";
18
19         [SetUp]
20         public void Init()
21         {
22             tlog.Info(tag, "Init() is called!");
23         }
24
25         [TearDown]
26         public void Destroy()
27         {
28             tlog.Info(tag, "Destroy() is called!");
29         }
30
31         [Test]
32         [Category("P1")]
33         [Description("Animation constructor")]
34         [Property("SPEC", "Tizen.NUI.Animation.Animation C")]
35         [Property("SPEC_URL", "-")]
36         [Property("CRITERIA", "CONSTR")]
37         [Property("AUTHOR", "guowei.wang@samsung.com")]
38         public void AnimationConstructor()
39         {
40             tlog.Debug(tag, $"AnimationConstructor START");
41
42             var testingTarget = new Animation(2000);
43             Assert.IsNotNull(testingTarget, "should be not null");
44             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
45
46             testingTarget.Dispose();
47             tlog.Debug(tag, $"AnimationConstructor END (OK)");
48         }
49
50         [Test]
51         [Category("P1")]
52         [Description("Animation Duration. Get")]
53         [Property("SPEC", "Tizen.NUI.Animation.Duration A")]
54         [Property("SPEC_URL", "-")]
55         [Property("CRITERIA", "PRO")]
56         [Property("AUTHOR", "guowei.wang@samsung.com")]
57         public void AnimationDurationGet()
58         {
59             tlog.Debug(tag, $"AnimationDurationGet START");
60
61             var testingTarget = new Animation(2000);
62             Assert.IsNotNull(testingTarget, "should be not null");
63             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
64
65             var result = testingTarget.Duration;
66             Assert.AreEqual(2000, result, "should be eaqual.");
67
68             testingTarget.Dispose();
69             tlog.Debug(tag, $"AnimationDurationGet END (OK)");
70         }
71
72         [Test]
73         [Category("P1")]
74         [Description("Animation Duration. Set")]
75         [Property("SPEC", "Tizen.NUI.Animation.Duration A")]
76         [Property("SPEC_URL", "-")]
77         [Property("CRITERIA", "PRO")]
78         [Property("AUTHOR", "guowei.wang@samsung.com")]
79         public void AnimationDurationSet()
80         {
81             tlog.Debug(tag, $"AnimationDurationSet START");
82
83             var testingTarget = new Animation();
84             Assert.IsNotNull(testingTarget, "should be not null");
85             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
86
87             testingTarget.Duration = 2000;
88             var result = testingTarget.Duration;
89             Assert.AreEqual(2000, result, "should be eaqual.");
90
91             testingTarget.Dispose();
92             tlog.Debug(tag, $"AnimationDurationSet END (OK)");
93         }
94
95         [Test]
96         [Category("P1")]
97         [Description("Animation DefaultAlphaFunction. Get")]
98         [Property("SPEC", "Tizen.NUI.Animation.DefaultAlphaFunction A")]
99         [Property("SPEC_URL", "-")]
100         [Property("CRITERIA", "PRO")]
101         [Property("AUTHOR", "guowei.wang@samsung.com")]
102         public void AnimationDefaultAlphaFunctionGet()
103         {
104             tlog.Debug(tag, $"AnimationDefaultAlphaFunctionGet START");
105
106             var testingTarget = new Animation();
107             Assert.IsNotNull(testingTarget, "should be not null");
108             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
109
110             var result = testingTarget.DefaultAlphaFunction;
111             Assert.IsNotNull(result, "should be not null");
112             Assert.IsInstanceOf<AlphaFunction>(result, "should be an instance of AlphaFunction class!");
113
114             testingTarget.Dispose();
115             tlog.Debug(tag, $"AnimationDefaultAlphaFunctionGet END (OK)");
116         }
117
118         [Test]
119         [Category("P1")]
120         [Description("Animation DefaultAlphaFunction. Set")]
121         [Property("SPEC", "Tizen.NUI.Animation.DefaultAlphaFunction A")]
122         [Property("SPEC_URL", "-")]
123         [Property("CRITERIA", "PRO")]
124         [Property("AUTHOR", "guowei.wang@samsung.com")]
125         public void AnimationDefaultAlphaFunctionSet()
126         {
127             tlog.Debug(tag, $"AnimationDefaultAlphaFunctionSet START");
128
129             var testingTarget = new Animation();
130             Assert.IsNotNull(testingTarget, "should be not null");
131             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
132
133             testingTarget.DefaultAlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Bounce);
134             var result = testingTarget.DefaultAlphaFunction;
135             Assert.IsNotNull(result, "should be not null");
136             Assert.IsInstanceOf<AlphaFunction>(result, "should be an instance of AlphaFunction class!");
137
138             testingTarget.Dispose();
139             tlog.Debug(tag, $"AnimationDefaultAlphaFunctionSet END (OK)");
140         }
141
142         [Test]
143         [Category("P1")]
144         [Description("Animation State")]
145         [Property("SPEC", "Tizen.NUI.Animation.State A")]
146         [Property("SPEC_URL", "-")]
147         [Property("CRITERIA", "PRO")]
148         [Property("AUTHOR", "guowei.wang@samsung.com")]
149         public void AnimationState()
150         {
151             tlog.Debug(tag, $"AnimationState START");
152
153             var testingTarget = new Animation();
154             Assert.IsNotNull(testingTarget, "should be not null");
155             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
156
157             var result = testingTarget.State;
158             Assert.AreEqual("Stopped", result.ToString(), "should be eaqual.");
159
160             testingTarget.Dispose();
161             tlog.Debug(tag, $"AnimationState END (OK)");
162         }
163
164         [Test]
165         [Category("P1")]
166         [Description("Animation LoopCount. Get")]
167         [Property("SPEC", "Tizen.NUI.Animation.LoopCount A")]
168         [Property("SPEC_URL", "-")]
169         [Property("CRITERIA", "PRO")]
170         [Property("AUTHOR", "guowei.wang@samsung.com")]
171         public void AnimationLoopCountGet()
172         {
173             tlog.Debug(tag, $"AnimationLoopCountGet START");
174
175             var testingTarget = new Animation();
176             Assert.IsNotNull(testingTarget, "should be not null");
177             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
178
179             var result = testingTarget.LoopCount;
180             Assert.IsTrue(1 == result);
181
182             testingTarget.Dispose();
183             tlog.Debug(tag, $"AnimationLoopCountGet END (OK)");
184         }
185
186         [Test]
187         [Category("P1")]
188         [Description("Animation LoopCount. Set")]
189         [Property("SPEC", "Tizen.NUI.Animation.LoopCount A")]
190         [Property("SPEC_URL", "-")]
191         [Property("CRITERIA", "PRO")]
192         [Property("AUTHOR", "guowei.wang@samsung.com")]
193         public void AnimationLoopCountSet()
194         {
195             tlog.Debug(tag, $"AnimationLoopCountSet START");
196
197             var testingTarget = new Animation();
198             Assert.IsNotNull(testingTarget, "should be not null");
199             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
200
201             testingTarget.LoopCount = 3;
202             var result = testingTarget.LoopCount;
203             Assert.IsTrue(3 == result);
204
205             testingTarget.Dispose();
206             tlog.Debug(tag, $"AnimationLoopCountSet END (OK)");
207         }
208
209         [Test]
210         [Category("P1")]
211         [Description("Animation Looping. Get")]
212         [Property("SPEC", "Tizen.NUI.Animation.Looping A")]
213         [Property("SPEC_URL", "-")]
214         [Property("CRITERIA", "PRO")]
215         [Property("AUTHOR", "guowei.wang@samsung.com")]
216         public void AnimationLoopingGet()
217         {
218             tlog.Debug(tag, $"AnimationLoopingGet START");
219
220             var testingTarget = new Animation();
221             Assert.IsNotNull(testingTarget, "should be not null");
222             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
223
224             var result = testingTarget.Looping;
225             Assert.IsFalse(result);
226
227             testingTarget.Dispose();
228             tlog.Debug(tag, $"AnimationLoopingGet END (OK)");
229         }
230
231         [Test]
232         [Category("P1")]
233         [Description("Animation Looping. Set")]
234         [Property("SPEC", "Tizen.NUI.Animation.Looping A")]
235         [Property("SPEC_URL", "-")]
236         [Property("CRITERIA", "PRO")]
237         [Property("AUTHOR", "guowei.wang@samsung.com")]
238         public void AnimationLoopingSet()
239         {
240             tlog.Debug(tag, $"AnimationLoopingSet START");
241
242             var testingTarget = new Animation();
243             Assert.IsNotNull(testingTarget, "should be not null");
244             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
245
246             testingTarget.Looping = true;
247             var result = testingTarget.Looping;
248             Assert.IsTrue(result);
249
250             testingTarget.Dispose();
251             tlog.Debug(tag, $"AnimationLoopingSet END (OK)");
252         }
253
254         [Test]
255         [Category("P1")]
256         [Description("Animation EndAction. Get")]
257         [Property("SPEC", "Tizen.NUI.Animation.EndAction A")]
258         [Property("SPEC_URL", "-")]
259         [Property("CRITERIA", "PRO")]
260         [Property("AUTHOR", "guowei.wang@samsung.com")]
261         public void AnimationEndActionGet()
262         {
263             tlog.Debug(tag, $"AnimationEndActionGet START");
264
265             var testingTarget = new Animation();
266             Assert.IsNotNull(testingTarget, "should be not null");
267             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
268
269             var result = testingTarget.EndAction;
270             Assert.IsTrue(EndActions.Cancel == result);
271
272             testingTarget.Dispose();
273             tlog.Debug(tag, $"AnimationEndActionGet END (OK)");
274         }
275
276         [Test]
277         [Category("P1")]
278         [Description("Animation EndAction. Set")]
279         [Property("SPEC", "Tizen.NUI.Animation.EndAction A")]
280         [Property("SPEC_URL", "-")]
281         [Property("CRITERIA", "PRO")]
282         [Property("AUTHOR", "guowei.wang@samsung.com")]
283         public void AnimationEndActionSet()
284         {
285             tlog.Debug(tag, $"AnimationEndActionSet START");
286
287             var testingTarget = new Animation();
288             Assert.IsNotNull(testingTarget, "should be not null");
289             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
290
291             testingTarget.EndAction = Animation.EndActions.Discard;
292             var result = testingTarget.EndAction;
293             Assert.IsTrue(EndActions.Discard == result);
294
295             testingTarget.Dispose();
296             tlog.Debug(tag, $"AnimationEndActionSet END (OK)");
297         }
298
299         [Test]
300         [Category("P1")]
301         [Description("Animation CurrentLoop")]
302         [Property("SPEC", "Tizen.NUI.Animation.CurrentLoop A")]
303         [Property("SPEC_URL", "-")]
304         [Property("CRITERIA", "PRO")]
305         [Property("AUTHOR", "guowei.wang@samsung.com")]
306         public void AnimationCurrentLoop()
307         {
308             tlog.Debug(tag, $"AnimationCurrentLoop START");
309
310             var testingTarget = new Animation();
311             Assert.IsNotNull(testingTarget, "should be not null");
312             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
313
314             var result = testingTarget.CurrentLoop;
315             Assert.IsTrue(0 == result);
316
317             testingTarget.Dispose();
318             tlog.Debug(tag, $"AnimationCurrentLoop END (OK)");
319         }
320
321         [Test]
322         [Category("P1")]
323         [Description("Animation DisconnectAction. Get")]
324         [Property("SPEC", "Tizen.NUI.Animation.DisconnectAction A")]
325         [Property("SPEC_URL", "-")]
326         [Property("CRITERIA", "PRO")]
327         [Property("AUTHOR", "guowei.wang@samsung.com")]
328         public void AnimationDisconnectActionGet()
329         {
330             tlog.Debug(tag, $"AnimationDisconnectActionGet START");
331
332             var testingTarget = new Animation();
333             Assert.IsNotNull(testingTarget, "should be not null");
334             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
335
336             var result = testingTarget.DisconnectAction;
337             Assert.IsTrue(EndActions.StopFinal == result);
338
339             testingTarget.Dispose();
340             tlog.Debug(tag, $"AnimationDisconnectActionGet END (OK)");
341         }
342
343         [Test]
344         [Category("P1")]
345         [Description("Animation DisconnectAction. Set")]
346         [Property("SPEC", "Tizen.NUI.Animation.DisconnectAction A")]
347         [Property("SPEC_URL", "-")]
348         [Property("CRITERIA", "PRO")]
349         [Property("AUTHOR", "guowei.wang@samsung.com")]
350         public void AnimationDisconnectActionSet()
351         {
352             tlog.Debug(tag, $"AnimationDisconnectActionSet START");
353
354             var testingTarget = new Animation();
355             Assert.IsNotNull(testingTarget, "should be not null");
356             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
357
358             testingTarget.DisconnectAction = Animation.EndActions.Cancel;
359             var result = testingTarget.EndAction;
360             Assert.IsTrue(EndActions.Cancel == result);
361
362             testingTarget.Dispose();
363             tlog.Debug(tag, $"AnimationDisconnectActionSet END (OK)");
364         }
365
366         [Test]
367         [Category("P1")]
368         [Description("Animation CurrentProgress. Get")]
369         [Property("SPEC", "Tizen.NUI.Animation.CurrentProgress A")]
370         [Property("SPEC_URL", "-")]
371         [Property("CRITERIA", "PRO")]
372         [Property("AUTHOR", "guowei.wang@samsung.com")]
373         public void AnimationCurrentProgressGet()
374         {
375             tlog.Debug(tag, $"AnimationCurrentProgressGet START");
376
377             var testingTarget = new Animation();
378             Assert.IsNotNull(testingTarget, "should be not null");
379             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
380
381             var result = testingTarget.CurrentProgress;
382             Assert.IsTrue(0 == result);
383
384             testingTarget.Dispose();
385             tlog.Debug(tag, $"AnimationCurrentProgressGet END (OK)");
386         }
387
388         [Test]
389         [Category("P1")]
390         [Description("Animation CurrentProgress. Set")]
391         [Property("SPEC", "Tizen.NUI.Animation.CurrentProgress A")]
392         [Property("SPEC_URL", "-")]
393         [Property("CRITERIA", "PRO")]
394         [Property("AUTHOR", "guowei.wang@samsung.com")]
395         public void AnimationCurrentProgressSet()
396         {
397             tlog.Debug(tag, $"AnimationCurrentProgressSet START");
398
399             var testingTarget = new Animation(3000);
400             Assert.IsNotNull(testingTarget, "should be not null");
401             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
402
403             testingTarget.CurrentProgress = 0.3f;
404             float result = testingTarget.CurrentProgress;
405             Assert.IsTrue(0 == result);
406
407             testingTarget.Dispose();
408             tlog.Debug(tag, $"AnimationCurrentProgressSet END (OK)");
409         }
410
411         [Test]
412         [Category("P1")]
413         [Description("Animation SpeedFactor. Get")]
414         [Property("SPEC", "Tizen.NUI.Animation.SpeedFactor A")]
415         [Property("SPEC_URL", "-")]
416         [Property("CRITERIA", "PRO")]
417         [Property("AUTHOR", "guowei.wang@samsung.com")]
418         public void AnimationSpeedFactorGet()
419         {
420             tlog.Debug(tag, $"AnimationSpeedFactorGet START");
421
422             var testingTarget = new Animation();
423             Assert.IsNotNull(testingTarget, "should be not null");
424             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
425
426             var result = testingTarget.SpeedFactor;
427             Assert.IsTrue(1 == result);
428
429             testingTarget.Dispose();
430             tlog.Debug(tag, $"AnimationSpeedFactorGet END (OK)");
431         }
432
433         [Test]
434         [Category("P1")]
435         [Description("Animation SpeedFactor. Set")]
436         [Property("SPEC", "Tizen.NUI.Animation.SpeedFactor A")]
437         [Property("SPEC_URL", "-")]
438         [Property("CRITERIA", "PRO")]
439         [Property("AUTHOR", "guowei.wang@samsung.com")]
440         public void AnimationSpeedFactorSet()
441         {
442             tlog.Debug(tag, $"AnimationSpeedFactorSet START");
443
444             var testingTarget = new Animation(3000);
445             Assert.IsNotNull(testingTarget, "should be not null");
446             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
447
448             testingTarget.SpeedFactor = 2;
449             float result = testingTarget.SpeedFactor;
450             Assert.IsTrue(2 == result);
451
452             testingTarget.Dispose();
453             tlog.Debug(tag, $"AnimationSpeedFactorSet END (OK)");
454         }
455
456         [Test]
457         [Category("P1")]
458         [Description("Animation PlayRange. Get")]
459         [Property("SPEC", "Tizen.NUI.Animation.PlayRange A")]
460         [Property("SPEC_URL", "-")]
461         [Property("CRITERIA", "PRO")]
462         [Property("AUTHOR", "guowei.wang@samsung.com")]
463         public void AnimationPlayRangeGet()
464         {
465             tlog.Debug(tag, $"AnimationPlayRangeGet START");
466
467             var testingTarget = new Animation();
468             Assert.IsNotNull(testingTarget, "should be not null");
469             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
470
471             var result = testingTarget.PlayRange;
472             Assert.IsTrue(0 == result.X);
473             Assert.IsTrue(1 == result.Y);
474
475             testingTarget.Dispose();
476             tlog.Debug(tag, $"AnimationPlayRangeGet END (OK)");
477         }
478
479         [Test]
480         [Category("P1")]
481         [Description("Animation PlayRange. Set")]
482         [Property("SPEC", "Tizen.NUI.Animation.PlayRange A")]
483         [Property("SPEC_URL", "-")]
484         [Property("CRITERIA", "PRO")]
485         [Property("AUTHOR", "guowei.wang@samsung.com")]
486         public void AnimationPlayRangeSet()
487         {
488             tlog.Debug(tag, $"AnimationPlayRangeSet START");
489
490             var testingTarget = new Animation(3000);
491             Assert.IsNotNull(testingTarget, "should be not null");
492             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
493
494             testingTarget.PlayRange = new RelativeVector2(0.3f, 0.5f);
495             var result = testingTarget.PlayRange;
496             Assert.IsTrue(0.3f == result.X);
497             Assert.IsTrue(0.5f == result.Y);
498
499             testingTarget.Dispose();
500             tlog.Debug(tag, $"AnimationPlayRangeSet END (OK)");
501         }
502
503         [Test]
504         [Category("P1")]
505         [Description("Animation ProgressNotification. Get")]
506         [Property("SPEC", "Tizen.NUI.Animation.ProgressNotification A")]
507         [Property("SPEC_URL", "-")]
508         [Property("CRITERIA", "PRO")]
509         [Property("AUTHOR", "guowei.wang@samsung.com")]
510         public void AnimationProgressNotificationGet()
511         {
512             tlog.Debug(tag, $"AnimationProgressNotificationGet START");
513
514             var testingTarget = new Animation();
515             Assert.IsNotNull(testingTarget, "should be not null");
516             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
517
518             var result = testingTarget.ProgressNotification;
519             Assert.IsTrue(0 == result);
520
521             testingTarget.Dispose();
522             tlog.Debug(tag, $"AnimationProgressNotificationGet END (OK)");
523         }
524
525         [Test]
526         [Category("P1")]
527         [Description("Animation ProgressNotification. Set")]
528         [Property("SPEC", "Tizen.NUI.Animation.ProgressNotification A")]
529         [Property("SPEC_URL", "-")]
530         [Property("CRITERIA", "PRO")]
531         [Property("AUTHOR", "guowei.wang@samsung.com")]
532         public void AnimationProgressNotificationSet()
533         {
534             tlog.Debug(tag, $"AnimationProgressNotificationSet START");
535
536             var testingTarget = new Animation(3000);
537             Assert.IsNotNull(testingTarget, "should be not null");
538             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
539
540             testingTarget.ProgressNotification = 0.3f;
541             var result = testingTarget.ProgressNotification;
542             Assert.IsTrue(0.3f == result);
543
544             testingTarget.Dispose();
545             tlog.Debug(tag, $"AnimationProgressNotificationSet END (OK)");
546         }
547
548         [Test]
549         [Category("P1")]
550         [Description("Animation PropertyList. Get")]
551         [Property("SPEC", "Tizen.NUI.Animation.PropertyList A")]
552         [Property("SPEC_URL", "-")]
553         [Property("CRITERIA", "PRO")]
554         [Property("AUTHOR", "guowei.wang@samsung.com")]
555         public void AnimationPropertyList()
556         {
557             tlog.Debug(tag, $"AnimationPropertyList START");
558
559             var testingTarget = new Animation();
560             Assert.IsNotNull(testingTarget, "should be not null");
561             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
562
563             TransitionAnimation transition = new TransitionAnimation(300);
564             ImageView view = new ImageView();
565             view.ApplyStyle(transition.DefaultImageStyle.Clone());
566
567             var dummy = new TransitionAnimationData()
568             {
569                 Property = "Size",
570                 DestinationValue = "100, 100",
571                 StartTime = 300,
572                 EndTime = 600
573             };
574             transition.AddAnimationData(dummy);
575
576             for (int i = 0; i < transition.AnimationDataList.Count; i++)
577             {
578                 testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
579                 testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
580                 testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
581                 testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
582             }
583
584             var result = testingTarget.PropertyList[0];
585             Assert.IsTrue("Size" == result);
586
587             view.Dispose();
588             transition.Dispose();
589             testingTarget.Dispose();
590             tlog.Debug(tag, $"AnimationPropertyList END (OK)");
591         }
592
593         [Test]
594         [Category("P1")]
595         [Description("Animation DestValueList. Get")]
596         [Property("SPEC", "Tizen.NUI.Animation.DestValueList A")]
597         [Property("SPEC_URL", "-")]
598         [Property("CRITERIA", "PRO")]
599         [Property("AUTHOR", "guowei.wang@samsung.com")]
600         public void AnimationDestValueList()
601         {
602             tlog.Debug(tag, $"AnimationDestValueList START");
603
604             var testingTarget = new Animation();
605             Assert.IsNotNull(testingTarget, "should be not null");
606             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
607
608             TransitionAnimation transition = new TransitionAnimation(300);
609             ImageView view = new ImageView();
610             view.ApplyStyle(transition.DefaultImageStyle.Clone());
611
612             var dummy = new TransitionAnimationData()
613             {
614                 Property = "Size",
615                 DestinationValue = "100, 100",
616                 StartTime = 300,
617                 EndTime = 600
618             };
619             transition.AddAnimationData(dummy);
620
621             for (int i = 0; i < transition.AnimationDataList.Count; i++)
622             {
623                 testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
624                 testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
625                 testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
626                 testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
627             }
628
629             var result = testingTarget.DestValueList[0];
630             Assert.IsTrue("100, 100" == result);
631
632             view.Dispose();
633             transition.Dispose();
634             testingTarget.Dispose();
635             tlog.Debug(tag, $"AnimationDestValueList END (OK)");
636         }
637
638         [Test]
639         [Category("P1")]
640         [Description("Animation StartTimeList. Get")]
641         [Property("SPEC", "Tizen.NUI.Animation.StartTimeList A")]
642         [Property("SPEC_URL", "-")]
643         [Property("CRITERIA", "PRO")]
644         [Property("AUTHOR", "guowei.wang@samsung.com")]
645         public void AnimationStartTimeList()
646         {
647             tlog.Debug(tag, $"AnimationStartTimeList START");
648
649             var testingTarget = new Animation();
650             Assert.IsNotNull(testingTarget, "should be not null");
651             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
652
653             TransitionAnimation transition = new TransitionAnimation(300);
654             ImageView view = new ImageView();
655             view.ApplyStyle(transition.DefaultImageStyle.Clone());
656
657             var dummy = new TransitionAnimationData()
658             {
659                 Property = "Size",
660                 DestinationValue = "100, 100",
661                 StartTime = 300,
662                 EndTime = 600
663             };
664             transition.AddAnimationData(dummy);
665
666             for (int i = 0; i < transition.AnimationDataList.Count; i++)
667             {
668                 testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
669                 testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
670                 testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
671                 testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
672             }
673
674             var result = testingTarget.StartTimeList[0];
675             Assert.IsTrue(300 == result);
676
677             view.Dispose();
678             transition.Dispose();
679             testingTarget.Dispose();
680             tlog.Debug(tag, $"AnimationStartTimeList END (OK)");
681         }
682
683         [Test]
684         [Category("P1")]
685         [Description("Animation EndTimeList. Get")]
686         [Property("SPEC", "Tizen.NUI.Animation.EndTimeList A")]
687         [Property("SPEC_URL", "-")]
688         [Property("CRITERIA", "PRO")]
689         [Property("AUTHOR", "guowei.wang@samsung.com")]
690         public void AnimationEndTimeList()
691         {
692             tlog.Debug(tag, $"AnimationEndTimeList START");
693
694             var testingTarget = new Animation();
695             Assert.IsNotNull(testingTarget, "should be not null");
696             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
697
698             TransitionAnimation transition = new TransitionAnimation(300);
699             ImageView view = new ImageView();
700             view.ApplyStyle(transition.DefaultImageStyle.Clone());
701
702             var dummy = new TransitionAnimationData()
703             {
704                 Property = "Size",
705                 DestinationValue = "100, 100",
706                 StartTime = 300,
707                 EndTime = 600
708             };
709             transition.AddAnimationData(dummy);
710
711             for (int i = 0; i < transition.AnimationDataList.Count; i++)
712             {
713                 testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
714                 testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
715                 testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
716                 testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
717             }
718
719             var result = testingTarget.EndTimeList[0];
720             Assert.IsTrue(600 == result);
721
722             view.Dispose();
723             transition.Dispose();
724             testingTarget.Dispose();
725             tlog.Debug(tag, $"AnimationEndTimeList END (OK)");
726         }
727
728         [Test]
729         [Category("P1")]
730         [Description("Animation Stop. Get")]
731         [Property("SPEC", "Tizen.NUI.Animation.Stop M")]
732         [Property("SPEC_URL", "-")]
733         [Property("CRITERIA", "MR")]
734         [Property("AUTHOR", "guowei.wang@samsung.com")]
735         public void AnimationStop()
736         {
737             tlog.Debug(tag, $"AnimationStop START");
738
739             var testingTarget = new Animation();
740             Assert.IsNotNull(testingTarget, "should be not null");
741             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
742
743             testingTarget.Stop(EndActions.Discard);
744             var result = testingTarget.EndAction;
745             Assert.IsTrue(EndActions.Discard == result);
746
747             testingTarget.Dispose();
748             tlog.Debug(tag, $"AnimationStop END (OK)");
749         }
750
751         [Test]
752         [Category("P1")]
753         [Description("Animation AnimateBy")]
754         [Property("SPEC", "Tizen.NUI.Animation.AnimateBy M")]
755         [Property("SPEC_URL", "-")]
756         [Property("CRITERIA", "MR")]
757         [Property("AUTHOR", "guowei.wang@samsung.com")]
758         public void AnimationAnimateBy()
759         {
760             tlog.Debug(tag, $"AnimationAnimateBy START");
761
762             View view = new View()
763             {
764                 Position = new Position(0, 0)
765             };
766             Window.Instance.Add(view);
767             Assert.IsTrue(0 == view.Position.X);
768             Assert.IsTrue(0 == view.Position.Y);
769
770             var testingTarget = new Animation(1500);
771             Assert.IsNotNull(testingTarget, "should be not null");
772             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
773
774             testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
775             testingTarget.AnimateBy(view, "Position", new Position(100, 150));
776             testingTarget.EndAction = Animation.EndActions.StopFinal;
777             testingTarget.Play();
778
779             Assert.IsTrue(100 == view.Position.X);
780             Assert.IsTrue(150 == view.Position.Y);
781
782             view.Dispose();
783             testingTarget.Dispose();
784             tlog.Debug(tag, $"AnimationAnimateBy END (OK)");
785         }
786
787         [Test]
788         [Category("P1")]
789         [Description("Animation AnimateBy. With start time and end time")]
790         [Property("SPEC", "Tizen.NUI.Animation.AnimateBy M")]
791         [Property("SPEC_URL", "-")]
792         [Property("CRITERIA", "MR")]
793         [Property("AUTHOR", "guowei.wang@samsung.com")]
794         public void AnimationAnimateByWithStartTimeAndEndTime()
795         {
796             tlog.Debug(tag, $"AnimationAnimateByWithStartTimeAndEndTime START");
797
798             var view = new View()
799             {
800                 Position = new Position(0, 0)
801             };
802             Window.Instance.Add(view);
803             Assert.AreEqual(0, view.Position.X, "sholud be eaqual.");
804             Assert.AreEqual(0, view.Position.Y, "sholud be eaqual.");
805
806             var testingTarget = new Animation(1500);
807             Assert.IsNotNull(testingTarget, "should be not null");
808             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
809
810             testingTarget.EndAction = Animation.EndActions.StopFinal;
811             testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
812             testingTarget.AnimateBy(view, "Position", new Position(100, 150), 0, 0);
813             testingTarget.AnimateBy(view, "Position", new Position(300, 200), 0, 300);
814
815             testingTarget.Play();
816             Assert.AreEqual(400, view.Position.X, "sholud be eaqual.");
817             Assert.AreEqual(350, view.Position.Y, "sholud be eaqual.");
818
819             view.Dispose();
820             testingTarget.Dispose();
821             tlog.Debug(tag, $"AnimationAnimateByWithStartTimeAndEndTime END (OK)");
822         }
823
824         [Test]
825         [Category("P1")]
826         [Description("Animation AnimateTo")]
827         [Property("SPEC", "Tizen.NUI.Animation.AnimateTo M")]
828         [Property("SPEC_URL", "-")]
829         [Property("CRITERIA", "MR")]
830         [Property("AUTHOR", "guowei.wang@samsung.com")]
831         public void AnimationAnimateTo()
832         {
833             tlog.Debug(tag, $"AnimationAnimateTo START");
834
835             var view = new View()
836             {
837                 Position = new Position(0, 0)
838             };
839             Window.Instance.Add(view);
840             Assert.AreEqual(0, view.Position.X, "sholud be eaqual.");
841             Assert.AreEqual(0, view.Position.Y, "sholud be eaqual.");
842
843             var testingTarget = new Animation(1500);
844             Assert.IsNotNull(testingTarget, "should be not null");
845             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
846
847             testingTarget.EndAction = Animation.EndActions.StopFinal;
848             testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
849             testingTarget.AnimateTo(view, "Position", new Position(100, 150));
850             
851             testingTarget.Play();
852             Assert.AreEqual(100, view.Position.X, "sholud be eaqual.");
853             Assert.AreEqual(150, view.Position.Y, "sholud be eaqual.");
854
855             view.Dispose();
856             testingTarget.Dispose();
857             tlog.Debug(tag, $"AnimationAnimateTo END (OK)");
858         }
859
860         [Test]
861         [Category("P1")]
862         [Description("Animation AnimateTo. With start time and end time")]
863         [Property("SPEC", "Tizen.NUI.Animation.AnimateTo M")]
864         [Property("SPEC_URL", "-")]
865         [Property("CRITERIA", "MR")]
866         [Property("AUTHOR", "guowei.wang@samsung.com")]
867         public void AnimationAnimateToWithStartTimeAndEndTime()
868         {
869             tlog.Debug(tag, $"AnimationAnimateToWithStartTimeAndEndTime START");
870
871             var view = new View()
872             {
873                 Position = new Position(0, 0)
874             };
875             Window.Instance.Add(view);
876             Assert.AreEqual(0, view.Position.X, "sholud be eaqual.");
877             Assert.AreEqual(0, view.Position.Y, "sholud be eaqual.");
878
879             var testingTarget = new Animation(1500);
880             Assert.IsNotNull(testingTarget, "should be not null");
881             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
882
883             testingTarget.EndAction = Animation.EndActions.StopFinal;
884             testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
885             testingTarget.AnimateTo(view, "Position", new Position(100, 150), 0, 0);
886             testingTarget.AnimateTo(view, "Position", new Position(300, 200), 0, 300);
887
888             testingTarget.Play();
889             Assert.AreEqual(300, view.Position.X, "sholud be eaqual.");
890             Assert.AreEqual(200, view.Position.Y, "sholud be eaqual.");
891
892             view.Dispose();
893             testingTarget.Dispose();
894             tlog.Debug(tag, $"AnimationAnimateToWithStartTimeAndEndTime END (OK)");
895         }
896
897         [Test]
898         [Category("P1")]
899         [Description("Animation PlayAnimateTo")]
900         [Property("SPEC", "Tizen.NUI.Animation.PlayAnimateTo M")]
901         [Property("SPEC_URL", "-")]
902         [Property("CRITERIA", "MR")]
903         [Property("AUTHOR", "guowei.wang@samsung.com")]
904         public void AnimationPlayAnimateTo()
905         {
906             tlog.Debug(tag, $"AnimationPlayAnimateTo START");
907
908             var testingTarget = new Animation(1500);
909             Assert.IsNotNull(testingTarget, "should be not null");
910             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
911
912             TransitionAnimation transition = new TransitionAnimation(300);
913             ImageView view = new ImageView();
914             view.ApplyStyle(transition.DefaultImageStyle.Clone());
915
916             var dummy1 = new TransitionAnimationData()
917             {
918                 Property = "Size",
919                 DestinationValue = "100, 100",
920                 StartTime = 300,
921                 EndTime = 600
922             };
923             transition.AddAnimationData(dummy1);
924
925             var dummy2 = new TransitionAnimationData()
926             {
927                 Property = "Position",
928                 DestinationValue = "150, 250",
929                 StartTime = 300,
930                 EndTime = 600
931             };
932             transition.AddAnimationData(dummy2);
933
934             for (int i = 0; i < transition.AnimationDataList.Count; i++)
935             {
936                 testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
937                 testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
938                 testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
939                 testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
940             }
941             testingTarget.PlayAnimateTo(view);
942
943             view.Dispose();
944             transition.Dispose();
945             testingTarget.Dispose();
946             tlog.Debug(tag, $"AnimationPlayAnimateTo END (OK)");
947         }
948
949         [Test]
950         [Category("P1")]
951         [Description("Animation AnimateBetween")]
952         [Property("SPEC", "Tizen.NUI.Animation.AnimateBetween M")]
953         [Property("SPEC_URL", "-")]
954         [Property("CRITERIA", "MR")]
955         [Property("AUTHOR", "guowei.wang@samsung.com")]
956         public void AnimationAnimateBetween()
957         {
958             tlog.Debug(tag, $"AnimationAnimateBetween START");
959
960             View view = new View()
961             {
962                 Opacity = 0.0f
963             };
964
965             var keyFrames = new KeyFrames();
966             Assert.IsNotNull(keyFrames, "should be not null");
967             Assert.IsInstanceOf<KeyFrames>(keyFrames, "should be an instance of Animation class!");
968             keyFrames.Add(0.0f, 1.0f);
969
970             var testingTarget = new Animation(600);
971             Assert.IsNotNull(testingTarget, "should be not null");
972             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
973
974             testingTarget.EndAction = Animation.EndActions.StopFinal;
975             testingTarget.AnimateBetween(view, "Opacity", keyFrames);
976
977             testingTarget.Dispose();
978             keyFrames.Dispose();
979             view.Dispose();
980             tlog.Debug(tag, $"AnimationAnimateBetween END (OK)");
981         }
982
983         [Test]
984         [Category("P1")]
985         [Description("Animation AnimateBetween. With start time and end time")]
986         [Property("SPEC", "Tizen.NUI.Animation.AnimateBetween M")]
987         [Property("SPEC_URL", "-")]
988         [Property("CRITERIA", "MR")]
989         [Property("AUTHOR", "guowei.wang@samsung.com")]
990         public void AnimationAnimateBetweenWithStartTimeAndEndTime()
991         {
992             tlog.Debug(tag, $"AnimationAnimateBetweenWithStartTimeAndEndTime START");
993
994             View view = new View()
995             {
996                 Opacity = 0.0f
997             };
998
999             var keyFrames = new KeyFrames();
1000             Assert.IsNotNull(keyFrames, "should be not null");
1001             Assert.IsInstanceOf<KeyFrames>(keyFrames, "should be an instance of Animation class!");
1002             keyFrames.Add(0.0f, 1.0f);
1003
1004             var testingTarget = new Animation(600);
1005             Assert.IsNotNull(testingTarget, "should be not null");
1006             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1007
1008             testingTarget.EndAction = Animation.EndActions.StopFinal;
1009             testingTarget.AnimateBetween(view, "Opacity", keyFrames, 0, 600);
1010
1011             testingTarget.Dispose();
1012             keyFrames.Dispose();
1013             view.Dispose();
1014             tlog.Debug(tag, $"AnimationAnimateBetweenWithStartTimeAndEndTime END (OK)");
1015         }
1016
1017         [Test]
1018         [Category("P1")]
1019         [Description("Animation AnimatePath")]
1020         [Property("SPEC", "Tizen.NUI.Animation.AnimatePath M")]
1021         [Property("SPEC_URL", "-")]
1022         [Property("CRITERIA", "MR")]
1023         [Property("AUTHOR", "guowei.wang@samsung.com")]
1024         public void AnimationAnimatePath()
1025         {
1026             tlog.Debug(tag, $"AnimationAnimatePath START");
1027
1028             View view = new View()
1029             { 
1030                 Size = new Size(200, 300)
1031             };
1032
1033             Path path = new Path();
1034             PropertyArray points = new PropertyArray();
1035             points.PushBack(new PropertyValue(new Vector3(0.5f, 0.0f, 0.8f)));
1036             points.PushBack(new PropertyValue(new Vector3(0.9f, 0.3f, 0.0f)));
1037             path.Points = points;
1038
1039             var testingTarget = new Animation(600);
1040             Assert.IsNotNull(testingTarget, "should be not null");
1041             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1042
1043             testingTarget.EndAction = Animation.EndActions.StopFinal;
1044             testingTarget.AnimatePath(view, path, new Vector3(0.0f, 0.6f, 1.2f));
1045
1046             testingTarget.Dispose();
1047             points.Dispose();
1048             path.Dispose();
1049             view.Dispose();
1050             tlog.Debug(tag, $"AnimationAnimatePath END (OK)");
1051         }
1052
1053         [Test]
1054         [Category("P1")]
1055         [Description("Animation AnimatePath. With start time and end time")]
1056         [Property("SPEC", "Tizen.NUI.Animation.AnimatePath M")]
1057         [Property("SPEC_URL", "-")]
1058         [Property("CRITERIA", "MR")]
1059         [Property("AUTHOR", "guowei.wang@samsung.com")]
1060         public void AnimationAnimatePathWithStartTimeAndEndTime()
1061         {
1062             tlog.Debug(tag, $"AnimationAnimatePathWithStartTimeAndEndTime START");
1063
1064             View view = new View()
1065             {
1066                 Size = new Size(200, 300)
1067             };
1068
1069             Path path = new Path();
1070             PropertyArray points = new PropertyArray();
1071             points.PushBack(new PropertyValue(new Vector3(0.5f, 0.0f, 0.8f)));
1072             points.PushBack(new PropertyValue(new Vector3(0.9f, 0.3f, 0.0f)));
1073             path.Points = points;
1074
1075             var testingTarget = new Animation(600);
1076             Assert.IsNotNull(testingTarget, "should be not null");
1077             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1078
1079             testingTarget.EndAction = Animation.EndActions.StopFinal;
1080             testingTarget.AnimatePath(view, path, new Vector3(0.0f, 0.6f, 1.2f), 0, 600);
1081
1082             testingTarget.Dispose();
1083             points.Dispose();
1084             path.Dispose();
1085             view.Dispose();
1086             tlog.Debug(tag, $"AnimationAnimatePathWithStartTimeAndEndTime END (OK)");
1087         }
1088
1089         [Test]
1090         [Category("P1")]
1091         [Description("Animation Play")]
1092         [Property("SPEC", "Tizen.NUI.Animation.Play M")]
1093         [Property("SPEC_URL", "-")]
1094         [Property("CRITERIA", "MR")]
1095         [Property("AUTHOR", "guowei.wang@samsung.com")]
1096         public void AnimationPlay()
1097         {
1098             tlog.Debug(tag, $"AnimationPlay START");
1099
1100             var testingTarget = new Animation(600);
1101             Assert.IsNotNull(testingTarget, "should be not null");
1102             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1103
1104             testingTarget.EndAction = Animation.EndActions.StopFinal;
1105             try
1106             {
1107                 testingTarget.Play();
1108             }
1109             catch (Exception e)
1110             {
1111                 tlog.Error(tag, "Caught Exception" + e.ToString());
1112                 LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
1113                 Assert.Fail("Caught Exception" + e.ToString());
1114             }
1115             
1116             testingTarget.Dispose();
1117             tlog.Debug(tag, $"AnimationPlay END (OK)");
1118         }
1119
1120         [Test]
1121         [Category("P1")]
1122         [Description("Animation PlayFrom")]
1123         [Property("SPEC", "Tizen.NUI.Animation.PlayFrom M")]
1124         [Property("SPEC_URL", "-")]
1125         [Property("CRITERIA", "MR")]
1126         [Property("AUTHOR", "guowei.wang@samsung.com")]
1127         public void AnimationPlayFrom()
1128         {
1129             tlog.Debug(tag, $"AnimationPlayFrom START");
1130
1131             var testingTarget = new Animation(600);
1132             Assert.IsNotNull(testingTarget, "should be not null");
1133             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1134
1135             testingTarget.EndAction = Animation.EndActions.StopFinal;
1136             try
1137             {
1138                 testingTarget.PlayFrom(0.3f);
1139             }
1140             catch (Exception e)
1141             {
1142                 tlog.Error(tag, "Caught Exception" + e.ToString());
1143                 LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
1144                 Assert.Fail("Caught Exception" + e.ToString());
1145             }
1146             
1147             testingTarget.Dispose();
1148             tlog.Debug(tag, $"AnimationPlayFrom END (OK)");
1149         }
1150
1151         [Test]
1152         [Category("P1")]
1153         [Description("Animation PlayAfter")]
1154         [Property("SPEC", "Tizen.NUI.Animation.PlayAfter M")]
1155         [Property("SPEC_URL", "-")]
1156         [Property("CRITERIA", "MR")]
1157         [Property("AUTHOR", "guowei.wang@samsung.com")]
1158         public void AnimationPlayAfter()
1159         {
1160             tlog.Debug(tag, $"AnimationPlayAfter START");
1161
1162             var testingTarget = new Animation(600);
1163             Assert.IsNotNull(testingTarget, "should be not null");
1164             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1165
1166             testingTarget.EndAction = Animation.EndActions.StopFinal;
1167             try
1168             {
1169                 testingTarget.PlayAfter(300);
1170             }
1171             catch (Exception e)
1172             {
1173                 tlog.Error(tag, "Caught Exception" + e.ToString());
1174                 LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
1175                 Assert.Fail("Caught Exception" + e.ToString());
1176             }
1177
1178             testingTarget.Dispose();
1179             tlog.Debug(tag, $"AnimationPlayAfter END (OK)");
1180         }
1181
1182         [Test]
1183         [Category("P1")]
1184         [Description("Animation Pause")]
1185         [Property("SPEC", "Tizen.NUI.Animation.Pause M")]
1186         [Property("SPEC_URL", "-")]
1187         [Property("CRITERIA", "MR")]
1188         [Property("AUTHOR", "guowei.wang@samsung.com")]
1189         public async Task AnimationPause()
1190         {
1191             tlog.Debug(tag, $"AnimationPause START");
1192
1193             var testingTarget = new Animation(600);
1194             Assert.IsNotNull(testingTarget, "should be not null");
1195             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1196
1197             testingTarget.EndAction = Animation.EndActions.StopFinal;
1198             testingTarget.Play();
1199             await Task.Delay(200);
1200             testingTarget.Pause();
1201             var result = testingTarget.GetState();
1202             Assert.IsTrue(States.Paused == result);
1203
1204             testingTarget.Dispose();
1205             tlog.Debug(tag, $"AnimationPause END (OK)");
1206         }
1207
1208         [Test]
1209         [Category("P1")]
1210         [Description("Animation Clear")]
1211         [Property("SPEC", "Tizen.NUI.Animation.Stop M")]
1212         [Property("SPEC_URL", "-")]
1213         [Property("CRITERIA", "MR")]
1214         [Property("AUTHOR", "guowei.wang@samsung.com")]
1215         public void AnimationClear()
1216         {
1217             tlog.Debug(tag, $"AnimationClear START");
1218
1219             var testingTarget = new Animation(600);
1220             Assert.IsNotNull(testingTarget, "should be not null");
1221             Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1222
1223             testingTarget.EndAction = Animation.EndActions.StopFinal;
1224             testingTarget.Play();
1225
1226             try
1227             {
1228                 testingTarget.Clear();
1229             }
1230             catch (Exception e)
1231             {
1232                 tlog.Error(tag, "Caught Exception" + e.ToString());
1233                 LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
1234                 Assert.Fail("Caught Exception" + e.ToString());
1235             }
1236
1237             testingTarget.Dispose();
1238             tlog.Debug(tag, $"AnimationClear END (OK)");
1239         }
1240     }
1241 }