[Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
public void MinProgress_PROPERTY_SET_GET()
{
- double progress = 0.2;
+ double progress = 0.5;
_animation.SetAnimation(Program.Current.DirectoryInfo.Resource + "running.json");
_animation.MinProgress = progress;
Assert.AreEqual(progress, _animation.MinProgress, "Retrieved MinProgress should be equal to set value");
[Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
public void MaxProgress_PROPERTY_SET_GET()
{
- double progress = 0.8;
+ double progress = 0.5;
_animation.SetAnimation(Program.Current.DirectoryInfo.Resource + "running.json");
_animation.MaxProgress = progress;
Assert.AreEqual(progress, _animation.MaxProgress, "Retrieved MaxProgress should be equal to set value");
[Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
public void MinFrame_PROPERTY_SET_GET()
{
- int frame = 5;
+ int frame = 11;
_animation.SetAnimation(Program.Current.DirectoryInfo.Resource + "running.json");
_animation.MinFrame = frame;
Assert.AreEqual(frame, _animation.MinFrame, "Retrieved MinFrame should be equal to set value");
[Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
public void MaxFrame_PROPERTY_SET_GET()
{
- int frame = 30;
+ int frame = 11;
_animation.SetAnimation(Program.Current.DirectoryInfo.Resource + "running.json");
_animation.MaxFrame = frame;
Assert.AreEqual(frame, _animation.MaxFrame, "Retrieved MaxFrame should be equal to set value");
Assert.AreNotEqual(0, size.Width, "Retrieved DefaultSize Width should not be 0");
Assert.AreNotEqual(0, size.Height, "Retrieved DefaultSize Height should not be 0");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Get IsReversedPlaying value")]
+ [Property("SPEC", "ElmSharp.AnimationView.IsReversedPlaying A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
+ public void IsReversedPlaying_PROPERTY_GET()
+ {
+ _animation.SetAnimation(Program.Current.DirectoryInfo.Resource + "running.json");
+ _animation.Resize(360, 360);
+ _animation.Move(0, 0);
+ _animation.Show();
+ _animation.Play();
+ Assert.AreNotEqual(true, _animation.IsReversedPlaying, "Retrieved IsReversedPlaying should not be true");\r
+ _animation.Play(true);\r
+ Assert.AreNotEqual(false, _animation.IsReversedPlaying, "Retrieved IsReversedPlaying should not be false");\r
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Get State value")]
+ [Property("SPEC", "ElmSharp.AnimationView.State A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")]
+ public void State_PROPERTY_GET()
+ {
+ Assert.AreEqual(AnimationViewState.NotReady, _animation.State, "Retrieved State should be NotReady");
+ _animation.SetAnimation(Program.Current.DirectoryInfo.Resource + "running.json");
+ _animation.Resize(360, 360);
+ _animation.Move(0, 0);
+ _animation.Show();
+ _animation.Play(true);\r
+ Assert.AreEqual(AnimationViewState.ReversedPlay, _animation.State, "Retrieved State should be ReversedPlay");
+ _animation.Stop();\r
+ Assert.AreEqual(AnimationViewState.Stop, _animation.State, "Retrieved State should be Stop");
+ _animation.Play();
+ Assert.AreEqual(AnimationViewState.Play, _animation.State, "Retrieved State should be Play");\r
+ _animation.Pause();\r
+ Assert.AreEqual(AnimationViewState.Pause, _animation.State, "Retrieved State should be Pause");\r
+ }
}
}