+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/Model3dView")]
- public class InternalModel3dViewTest
- {
- private const string tag = "NUITEST";
- private string objUrl = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
- private string mtlUrl = "https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=d&word=bmp%E4%B8%8B%E8%BD%BD%20%E4%BD%8D%E5%9B%BE&step_word=&hs=2&pn=0&spn=0&di=30360&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&istype=2&ie=utf-8&oe=utf-8&in=&cl=2&lm=-1&st=-1&cs=506847219%2C2820013657&os=4205693751%2C1065126395&simid=0%2C0&adpicid=0&lpn=0&ln=389&fr=&fmq=1389861203899_R&fm=&ic=0&s=undefined&hd=undefined&latest=undefined©right=undefined&se=&sme=&tab=0&width=&height=&face=undefined&ist=&jit=&cg=&bdtype=0&oriquery=bmp%E4%B8%8B%E8%BD%BD&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%3A%2F%2Fbpic.ooopic.com%2F17%2F52%2F38%2F17523837-6a28a5a38920964a54ed89d8e93c3a3c-0.jpg%26refer%3Dhttp%3A%2F%2Fbpic.ooopic.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Djpeg%3Fsec%3D1624445232%26t%3Db9e3c91e4753f12d81e73c7142181326&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3B555rtv_z%26e3Bv54AzdH3Ffij3ty7wgf7AzdH3F80cdnbn0_z%26e3Bip4s&gsm=1&rpstart=0&rpnum=0&islist=&querylist=&force=undefined";
- private string imageUrl = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView constructor.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.Model3dView C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewConstructor()
- {
- tlog.Debug(tag, $"Model3dViewConstructor START");
-
- var testingTarget = new Model3dView();
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"Model3dViewConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView constructor.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.Model3dView C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewConstructorWith3Urls()
- {
- tlog.Debug(tag, $"Model3dViewConstructorWith3Urls START");
-
- var testingTarget = new Model3dView(objUrl, mtlUrl, imageUrl);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"Model3dViewConstructorWith3Urls END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView constructor.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.Model3dView C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewConstructorWithModel3dView()
- {
- tlog.Debug(tag, $"Model3dViewConstructorWithModel3dView START");
-
- using (Model3dView view = new Model3dView(objUrl, mtlUrl, imageUrl))
- {
- var testingTarget = new Model3dView(view);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"Model3dViewConstructorWithModel3dView END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView Assign.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.Assign M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewAssign()
- {
- tlog.Debug(tag, $"Model3dViewAssign START");
-
- using (Model3dView view = new Model3dView(objUrl, mtlUrl, imageUrl))
- {
- var testingTarget = view.Assign(view);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"Model3dViewAssign END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView DownCast.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.DownCast M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewDownCast()
- {
- tlog.Debug(tag, $"Model3dViewDownCast START");
-
- using (Model3dView view = new Model3dView(objUrl, mtlUrl, imageUrl))
- {
- var testingTarget = Model3dView.DownCast(view);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"Model3dViewDownCast END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView ImagesUrl.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.ImagesUrl A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewImagesUrl()
- {
- tlog.Debug(tag, $"Model3dViewImagesUrl START");
-
- var testingTarget = new Model3dView(objUrl, mtlUrl, imageUrl);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- tlog.Debug(tag, testingTarget.ImagesUrl);
- testingTarget.ImagesUrl = mtlUrl;
- tlog.Debug(tag, testingTarget.ImagesUrl);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"Model3dViewImagesUrl END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView GeometryUrl.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.GeometryUrl A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewGeometryUrl()
- {
- tlog.Debug(tag, $"Model3dViewGeometryUrl START");
-
- var testingTarget = new Model3dView(objUrl, mtlUrl, imageUrl);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- tlog.Debug(tag, testingTarget.GeometryUrl);
- testingTarget.GeometryUrl = mtlUrl;
- tlog.Debug(tag, testingTarget.GeometryUrl);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"Model3dViewGeometryUrl END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView MaterialUrl.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.MaterialUrl A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewMaterialUrl()
- {
- tlog.Debug(tag, $"Model3dViewMaterialUrl START");
-
- var testingTarget = new Model3dView(objUrl, mtlUrl, imageUrl);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- tlog.Debug(tag, testingTarget.MaterialUrl);
- testingTarget.MaterialUrl = mtlUrl;
- tlog.Debug(tag, testingTarget.MaterialUrl);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"Model3dViewMaterialUrl END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView IlluminationType.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.IlluminationType A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewIlluminationType()
- {
- tlog.Debug(tag, $"Model3dViewIlluminationType START");
-
- var testingTarget = new Model3dView(objUrl, mtlUrl, imageUrl);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- tlog.Debug(tag, testingTarget.IlluminationType.ToString());
- testingTarget.IlluminationType = 2;
- tlog.Debug(tag, testingTarget.IlluminationType.ToString());
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"Model3dViewIlluminationType END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView Texture0Url.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.Texture0Url A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewTexture0Url()
- {
- tlog.Debug(tag, $"Model3dViewTexture0Url START");
-
- var testingTarget = new Model3dView(objUrl, mtlUrl, imageUrl);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- tlog.Debug(tag, testingTarget.Texture0Url);
- testingTarget.Texture0Url = imageUrl;
- tlog.Debug(tag, testingTarget.Texture0Url);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"Model3dViewTexture0Url END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView Texture1Url.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.Texture1Url A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewTexture1Url()
- {
- tlog.Debug(tag, $"Model3dViewTexture1Url START");
-
- var testingTarget = new Model3dView(objUrl, mtlUrl, imageUrl);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- tlog.Debug(tag, testingTarget.Texture1Url);
- testingTarget.Texture1Url = objUrl;
- tlog.Debug(tag, testingTarget.Texture1Url);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"Model3dViewTexture1Url END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView Texture2Url.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.Texture2Url A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewTexture2Url()
- {
- tlog.Debug(tag, $"Model3dViewTexture2Url START");
-
- var testingTarget = new Model3dView(objUrl, mtlUrl, imageUrl);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- tlog.Debug(tag, testingTarget.Texture2Url);
- testingTarget.Texture2Url = mtlUrl;
- tlog.Debug(tag, testingTarget.Texture2Url);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"Model3dViewTexture2Url END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Model3dView LightPosition.")]
- [Property("SPEC", "Tizen.NUI.Model3dView.LightPosition A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void Model3dViewLightPosition()
- {
- tlog.Debug(tag, $"Model3dViewLightPosition START");
-
- var testingTarget = new Model3dView(objUrl, mtlUrl, imageUrl);
- Assert.IsNotNull(testingTarget, "Can't create success object Model3dView");
- Assert.IsInstanceOf<Model3dView>(testingTarget, "Should be an instance of Model3dView type.");
-
- tlog.Debug(tag, testingTarget.LightPosition.ToString());
- testingTarget.LightPosition = new Vector3(0.3f, 0.1f, 0.8f);
- tlog.Debug(tag, testingTarget.LightPosition.ToString());
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"Model3dViewLightPosition END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Common/TimePeriod")]
- public class InternalTimePeriodTest
- {
- private const string tag = "NUITEST";
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("TimePeriod constructor.")]
- [Property("SPEC", "Tizen.NUI.TimePeriod.TimePeriod C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TimePeriodConstructor()
- {
- tlog.Debug(tag, $"TimePeriodConstructor START");
-
- var testingTarget = new TimePeriod(300);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TimePeriod>(testingTarget, "Should be an Instance of TimePeriod!");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TimePeriodConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TimePeriod constructor. With delayMilliSeconds.")]
- [Property("SPEC", "Tizen.NUI.TimePeriod.TimePeriod C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TimePeriodConstructorWithDelayMilliSeconds()
- {
- tlog.Debug(tag, $"TimePeriodConstructorWithDelayMilliSeconds START");
-
- var testingTarget = new TimePeriod(0.3f, 1.0f);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TimePeriod>(testingTarget, "Should be an Instance of TimePeriod!");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TimePeriodConstructorWithDelayMilliSeconds END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TimePeriod DelayMilliseconds.")]
- [Property("SPEC", "Tizen.NUI.TimePeriod.DelayMilliseconds A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TimePeriodConstructorDelayMilliseconds()
- {
- tlog.Debug(tag, $"TimePeriodConstructorDelayMilliseconds START");
-
- var testingTarget = new TimePeriod(0.3f, 1.0f);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TimePeriod>(testingTarget, "Should be an Instance of TimePeriod!");
-
- testingTarget.DelayMilliseconds = 20;
- Assert.AreEqual(20, testingTarget.DelayMilliseconds, "Should be equal!");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TimePeriodConstructorDelayMilliseconds END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TimePeriod DurationMilliseconds.")]
- [Property("SPEC", "Tizen.NUI.TimePeriod.DurationMilliseconds A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TimePeriodConstructorDurationMilliseconds()
- {
- tlog.Debug(tag, $"TimePeriodConstructorDurationMilliseconds START");
-
- var testingTarget = new TimePeriod(0.3f, 1.0f);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<TimePeriod>(testingTarget, "Should be an Instance of TimePeriod!");
-
- testingTarget.DurationMilliseconds = 150;
- Assert.AreEqual(150, testingTarget.DurationMilliseconds, "Should be equal!");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TimePeriodConstructorDurationMilliseconds END (OK)");
- }
- }
-}
[Test]
[Category("P1")]
- [Description("DefaultFrameBroker ForwardAnimation.")]
- [Property("SPEC", "Tizen.NUI.DefaultFrameBroker.ForwardAnimation A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void DefaultFrameBrokerForwardAnimation()
- {
- tlog.Debug(tag, $"DefaultFrameBrokerForwardAnimation START");
-
- var testingTarget = new DefaultFrameBroker(Window.Instance);
- Assert.IsNotNull(testingTarget, "Can't create success object CustomView");
- Assert.IsInstanceOf<DefaultFrameBroker>(testingTarget, "Should be an instance of DefaultFrameBroker type.");
-
- try
- {
- var result = testingTarget.ForwardAnimation;
- tlog.Debug(tag, "ForwardAnimation.ForwardAnimation : " + result);
-
- using (TransitionAnimation forwardAni = new TransitionAnimation(300))
- {
- testingTarget.ForwardAnimation = forwardAni;
- tlog.Debug(tag, "ForwardAnimation.ForwardAnimation : " + testingTarget.ForwardAnimation);
- }
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"DefaultFrameBrokerForwardAnimation END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("DefaultFrameBroker BackwardAnimation.")]
- [Property("SPEC", "Tizen.NUI.DefaultFrameBroker.BackwardAnimation A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void DefaultFrameBrokerBackwardAnimation()
- {
- tlog.Debug(tag, $"DefaultFrameBrokerBackwardAnimation START");
-
- var testingTarget = new DefaultFrameBroker(Window.Instance);
- Assert.IsNotNull(testingTarget, "Can't create success object CustomView");
- Assert.IsInstanceOf<DefaultFrameBroker>(testingTarget, "Should be an instance of DefaultFrameBroker type.");
-
- try
- {
- var result = testingTarget.BackwardAnimation;
- tlog.Debug(tag, "ForwardAnimation.BackwardAnimation : " + result);
-
- using (TransitionAnimation backAni = new TransitionAnimation(300))
- {
- testingTarget.BackwardAnimation = backAni;
- tlog.Debug(tag, "ForwardAnimation.BackwardAnimation : " + testingTarget.BackwardAnimation);
- }
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"DefaultFrameBrokerBackwardAnimation END (OK)");
- }
-
- [Test]
- [Category("P1")]
[Description("DefaultFrameBroker OnFrameCreated.")]
[Property("SPEC", "Tizen.NUI.DefaultFrameBroker.OnFrameCreated M")]
[Property("SPEC_URL", "-")]
try
{
- testingTarget.SendLaunchRequest(null, true);
+ testingTarget.SendLaunchRequest(null);
}
catch (Exception e)
{
{
using (AlphaFunction alphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Default))
{
- var testingTarget = new TransitionItem(source, dest, timePeriod, alphaFunction);
+ var testingTarget = new TransitionItem(source, dest, true, timePeriod, alphaFunction);
Assert.IsNotNull(testingTarget, "Should be not null!");
Assert.IsInstanceOf<TransitionItem>(testingTarget, "Should be an Instance of TransitionItem!");
View view = new View()
{
Name = "view",
- TransitionOptions = new TransitionOptions(Window.Instance)
+ TransitionOptions = new TransitionOptions()
};
view.TransitionOptions.TransitionTag = "Transition";
- view.TransitionOptions.EnableTransition = true;
TransitionItemBase transitionItemBase = null;
using (TimePeriod timePeriod = new TimePeriod(500))
[Test]
[Category("P1")]
- [Description("Animation PropertyList. Get")]
- [Property("SPEC", "Tizen.NUI.Animation.PropertyList A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AnimationPropertyList()
- {
- tlog.Debug(tag, $"AnimationPropertyList START");
-
- var testingTarget = new Animation();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
-
- TransitionAnimation transition = new TransitionAnimation(300);
- ImageView view = new ImageView();
- view.ApplyStyle(transition.DefaultImageStyle.Clone());
-
- var dummy = new TransitionAnimationData()
- {
- Property = "Size",
- DestinationValue = "100, 100",
- StartTime = 300,
- EndTime = 600
- };
- transition.AddAnimationData(dummy);
-
- for (int i = 0; i < transition.AnimationDataList.Count; i++)
- {
- testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
- testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
- testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
- testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
- }
-
- var result = testingTarget.PropertyList[0];
- Assert.IsTrue("Size" == result);
-
- view.Dispose();
- transition.Dispose();
- testingTarget.Dispose();
- tlog.Debug(tag, $"AnimationPropertyList END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Animation DestValueList. Get")]
- [Property("SPEC", "Tizen.NUI.Animation.DestValueList A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AnimationDestValueList()
- {
- tlog.Debug(tag, $"AnimationDestValueList START");
-
- var testingTarget = new Animation();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
-
- TransitionAnimation transition = new TransitionAnimation(300);
- ImageView view = new ImageView();
- view.ApplyStyle(transition.DefaultImageStyle.Clone());
-
- var dummy = new TransitionAnimationData()
- {
- Property = "Size",
- DestinationValue = "100, 100",
- StartTime = 300,
- EndTime = 600
- };
- transition.AddAnimationData(dummy);
-
- for (int i = 0; i < transition.AnimationDataList.Count; i++)
- {
- testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
- testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
- testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
- testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
- }
-
- var result = testingTarget.DestValueList[0];
- Assert.IsTrue("100, 100" == result);
-
- view.Dispose();
- transition.Dispose();
- testingTarget.Dispose();
- tlog.Debug(tag, $"AnimationDestValueList END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Animation StartTimeList. Get")]
- [Property("SPEC", "Tizen.NUI.Animation.StartTimeList A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AnimationStartTimeList()
- {
- tlog.Debug(tag, $"AnimationStartTimeList START");
-
- var testingTarget = new Animation();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
-
- TransitionAnimation transition = new TransitionAnimation(300);
- ImageView view = new ImageView();
- view.ApplyStyle(transition.DefaultImageStyle.Clone());
-
- var dummy = new TransitionAnimationData()
- {
- Property = "Size",
- DestinationValue = "100, 100",
- StartTime = 300,
- EndTime = 600
- };
- transition.AddAnimationData(dummy);
-
- for (int i = 0; i < transition.AnimationDataList.Count; i++)
- {
- testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
- testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
- testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
- testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
- }
-
- var result = testingTarget.StartTimeList[0];
- Assert.IsTrue(300 == result);
-
- view.Dispose();
- transition.Dispose();
- testingTarget.Dispose();
- tlog.Debug(tag, $"AnimationStartTimeList END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Animation EndTimeList. Get")]
- [Property("SPEC", "Tizen.NUI.Animation.EndTimeList A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AnimationEndTimeList()
- {
- tlog.Debug(tag, $"AnimationEndTimeList START");
-
- var testingTarget = new Animation();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
-
- TransitionAnimation transition = new TransitionAnimation(300);
- ImageView view = new ImageView();
- view.ApplyStyle(transition.DefaultImageStyle.Clone());
-
- var dummy = new TransitionAnimationData()
- {
- Property = "Size",
- DestinationValue = "100, 100",
- StartTime = 300,
- EndTime = 600
- };
- transition.AddAnimationData(dummy);
-
- for (int i = 0; i < transition.AnimationDataList.Count; i++)
- {
- testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
- testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
- testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
- testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
- }
-
- var result = testingTarget.EndTimeList[0];
- Assert.IsTrue(600 == result);
-
- view.Dispose();
- transition.Dispose();
- testingTarget.Dispose();
- tlog.Debug(tag, $"AnimationEndTimeList END (OK)");
- }
-
- [Test]
- [Category("P1")]
[Description("Animation Stop. Get")]
[Property("SPEC", "Tizen.NUI.Animation.Stop M")]
[Property("SPEC_URL", "-")]
Assert.IsNotNull(testingTarget, "should be not null");
Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
- TransitionAnimation transition = new TransitionAnimation(300);
- ImageView view = new ImageView();
- view.ApplyStyle(transition.DefaultImageStyle.Clone());
-
- var dummy1 = new TransitionAnimationData()
- {
- Property = "Size",
- DestinationValue = "100, 100",
- StartTime = 300,
- EndTime = 600
+ ImageView view = new ImageView()
+ {
+ Size = new Size(100, 200),
};
- transition.AddAnimationData(dummy1);
- var dummy2 = new TransitionAnimationData()
+ try
{
- Property = "Position",
- DestinationValue = "150, 250",
- StartTime = 300,
- EndTime = 600
- };
- transition.AddAnimationData(dummy2);
-
- for (int i = 0; i < transition.AnimationDataList.Count; i++)
+ testingTarget.PlayAnimateTo(view);
+ }
+ catch (Exception e)
{
- testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
- testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
- testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
- testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
}
- testingTarget.PlayAnimateTo(view);
view.Dispose();
- transition.Dispose();
testingTarget.Dispose();
tlog.Debug(tag, $"AnimationPlayAnimateTo END (OK)");
}
Assert.IsNotNull(testingTarget, "should be not null");
Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
- TransitionAnimation transition = new TransitionAnimation(300);
ImageView view = null;
- var dummy1 = new TransitionAnimationData()
- {
- Property = "Size",
- DestinationValue = "100, 100",
- StartTime = 300,
- EndTime = 600
- };
- transition.AddAnimationData(dummy1);
-
- var dummy2 = new TransitionAnimationData()
- {
- Property = "Position",
- DestinationValue = "150, 250",
- StartTime = 300,
- EndTime = 600
- };
- transition.AddAnimationData(dummy2);
-
- for (int i = 0; i < transition.AnimationDataList.Count; i++)
- {
- testingTarget.PropertyList.Add(transition.AnimationDataList[i].Property);
- testingTarget.DestValueList.Add(transition.AnimationDataList[i].DestinationValue);
- testingTarget.StartTimeList.Add(transition.AnimationDataList[i].StartTime);
- testingTarget.EndTimeList.Add(transition.AnimationDataList[i].EndTime);
- }
-
try
{
testingTarget.PlayAnimateTo(view);
}
catch (ArgumentNullException)
{
- transition.Dispose();
testingTarget.Dispose();
tlog.Debug(tag, $"AnimationPlayAnimateToNullTarget END (OK)");
Assert.Pass("Caught ArgumentNullException : Passed!");
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("public/Animation/TransitionAnimations")]
- public class PublicTransitionAnimationsTest
- {
- private const string tag = "NUITEST";
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations constructor")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.TransitionAnimations C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationConstructor()
- {
- tlog.Debug(tag, $"TransitionAnimationConstructor START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- testingTarget.Dispose();
- // diposed
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations DurationMilliSeconds. Get")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.DurationMilliSeconds A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDurationMilliSecondsGet()
- {
- tlog.Debug(tag, $"TransitionAnimationDurationMilliSecondsGet START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- var result = testingTarget.DurationMilliSeconds;
- Assert.IsTrue(3000 == result);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationDurationMilliSecondsGet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations DurationMilliSeconds. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.DurationMilliSeconds A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDurationMilliSecondsSet()
- {
- tlog.Debug(tag, $"TransitionAnimationDurationMilliSecondsSet START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- testingTarget.DurationMilliSeconds = 600;
- var result = testingTarget.DurationMilliSeconds;
- Assert.IsTrue(600 == result);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationDurationMilliSecondsSet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations AnimationDataList")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.AnimationDataList A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationAnimationDataList()
- {
- tlog.Debug(tag, $"TransitionAnimationAnimationDataList START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- var result = testingTarget.AnimationDataList;
- Assert.IsTrue(0 == result.Count);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationAnimationDataList END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations AddAnimationData")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.AddAnimationData M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationAddAnimationData()
- {
- tlog.Debug(tag, $"TransitionAnimationAddAnimationData START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- var dummy = new TransitionAnimationData()
- {
- Property = "Size",
- DestinationValue = "100, 100",
- StartTime = 300,
- EndTime = 600
- };
- testingTarget.AddAnimationData(dummy);
-
- var result = testingTarget.AnimationDataList;
- Assert.IsTrue(1 == result.Count);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationAddAnimationData END (OK)");
- }
-
- [Test]
- [Category("P2")]
- [Description("TransitionAnimations AddAnimationData")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.AddAnimationData M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationAddAnimationDataWithNull()
- {
- tlog.Debug(tag, $"TransitionAnimationAddAnimationDataWithNull START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- try
- {
- TransitionAnimationData dummy = null;
- testingTarget.AddAnimationData(dummy);
- }
- catch (ArgumentNullException)
- {
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationAddAnimationDataWithNull END (OK)");
- Assert.Pass("Caught ArgumentNullException : Passed!");
- }
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations RemoveAnimationData")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.RemoveAnimationData M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationRemoveAnimationData()
- {
- tlog.Debug(tag, $"TransitionAnimationRemoveAnimationData START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- var dummy = new TransitionAnimationData()
- {
- Property = "Size",
- DestinationValue = "100, 100",
- StartTime = 300,
- EndTime = 600
- };
- testingTarget.AddAnimationData(dummy);
-
- var result = testingTarget.AnimationDataList.Count;
- Assert.IsTrue(1 == result);
-
- testingTarget.RemoveAnimationData(dummy);
- result = testingTarget.AnimationDataList.Count;
- Assert.IsTrue(0 == result);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationRemoveAnimationData END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations ClearAnimationData")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.ClearAnimationData M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationClearAnimationData()
- {
- tlog.Debug(tag, $"TransitionAnimationClearAnimationData START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- var dummy = new TransitionAnimationData()
- {
- Property = "Size",
- DestinationValue = "100, 100",
- StartTime = 300,
- EndTime = 600
- };
- testingTarget.AddAnimationData(dummy);
-
- var result = testingTarget.AnimationDataList.Count;
- Assert.IsTrue(1 == result);
-
- testingTarget.ClearAnimationData();
- result = testingTarget.AnimationDataList.Count;
- Assert.IsTrue(0 == result);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationClearAnimationData END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations DefaultImageStyle. Get")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.DefaultImageStyle A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDefaultImageStyleGet()
- {
- tlog.Debug(tag, $"TransitionAnimationDefaultImageStyleGet START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- var result = testingTarget.DefaultImageStyle;
- Assert.IsNotNull(result, "should be not null");
- Assert.IsInstanceOf<ImageViewStyle>(result, "should be an instance of ImageViewStyle class!");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationDefaultImageStyleGet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations DefaultImageStyle. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.DefaultImageStyle A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDefaultImageStyleSet()
- {
- tlog.Debug(tag, $"TransitionAnimationDefaultImageStyleSet START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- var style = new ImageViewStyle()
- {
- Size = new Size(100, 100),
- Position = new Position(150, 200),
- };
- testingTarget.DefaultImageStyle = style;
- var result = testingTarget.DefaultImageStyle;
- Assert.IsTrue(100 == result.Size.Width);
- Assert.IsTrue(100 == result.Size.Height);
- Assert.IsTrue(150 == result.Position.X);
- Assert.IsTrue(200 == result.Position.Y);
-
- style.Dispose();
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationDefaultImageStyleSet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations Dispose. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.Dispose A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDispose()
- {
- tlog.Debug(tag, $"TransitionAnimationDispose START");
-
- var testingTarget = new TransitionAnimation(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<TransitionAnimation>(testingTarget, "should be an instance of TransitionAnimation class!");
-
- try
- {
- testingTarget.Dispose();
- }
- catch (Exception e)
- {
- tlog.Error(tag, "Caught Exception" + e.ToString());
- LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
-
- tlog.Debug(tag, $"TransitionAnimationDispose END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations SlideIn constructor")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.SlideIn C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationSlideIn()
- {
- tlog.Debug(tag, $"TransitionAnimationSlideIn START");
-
- var testingTarget = new SlideIn(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<SlideIn>(testingTarget, "should be an instance of SlideIn class!");
-
- var style = testingTarget.DefaultImageStyle;
- var dummy = -Window.Instance.GetWindowSize().Width;
-
- Assert.IsTrue(Window.Instance.GetWindowSize().Width == style.Size.Width);
- Assert.IsTrue(Window.Instance.GetWindowSize().Height == style.Size.Height);
- Assert.IsTrue(dummy == style.Position.X);
- Assert.IsTrue(0 == style.Position.Y);
-
- Assert.IsTrue(0 == testingTarget.AnimationDataList[0].StartTime);
- Assert.IsTrue(3000 == testingTarget.AnimationDataList[0].EndTime);
- Assert.IsTrue("PositionX" == testingTarget.AnimationDataList[0].Property);
- Assert.IsTrue("0" == testingTarget.AnimationDataList[0].DestinationValue);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationSlideIn END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimations SlideOut constructor")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.SlideOut C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationSlideOut()
- {
- tlog.Debug(tag, $"TransitionAnimationSlideOut START");
-
- var testingTarget = new SlideOut(3000);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<SlideOut>(testingTarget, "should be an instance of SlideOut class!");
-
- var style = testingTarget.DefaultImageStyle;
-
- Assert.IsTrue(Window.Instance.GetWindowSize().Width == style.Size.Width);
- Assert.IsTrue(Window.Instance.GetWindowSize().Height == style.Size.Height);
-
- Assert.IsTrue(0 == testingTarget.AnimationDataList[0].StartTime);
- Assert.IsTrue(3000 == testingTarget.AnimationDataList[0].EndTime);
- Assert.IsTrue("PositionX" == testingTarget.AnimationDataList[0].Property);
- Assert.IsTrue(Window.Instance.GetWindowSize().Width.ToString() == testingTarget.AnimationDataList[0].DestinationValue);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionAnimationSlideOut END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimationData StartTime. Get")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.TransitionAnimationData.StartTime A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDataStartTimeGet()
- {
- tlog.Debug(tag, $"TransitionAnimationDataStartTimeGet START");
-
- var testingTarget = new TransitionAnimationData()
- {
- StartTime = 300,
- EndTime = 600,
- Property = "Size",
- DestinationValue = "100, 100",
- };
- var result = testingTarget.StartTime;
- Assert.AreEqual(300, result, "should be equal!");
-
- tlog.Debug(tag, $"TransitionAnimationDataStartTimeGet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimationData StartTime. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.TransitionAnimationData.StartTime A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDataStartTimeSet()
- {
- tlog.Debug(tag, $"TransitionAnimationDataStartTimeSet START");
-
- var testingTarget = new TransitionAnimationData()
- {
- StartTime = 300,
- EndTime = 600,
- Property = "Size",
- DestinationValue = "100, 100",
- };
-
- var result = testingTarget.StartTime;
- Assert.AreEqual(300, result, "should be equal!");
-
- testingTarget.StartTime = 600;
- result = testingTarget.StartTime;
- Assert.AreEqual(600, result, "should be equal!");
-
- tlog.Debug(tag, $"TransitionAnimationDataStartTimeSet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimationData EndTime. Get")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.TransitionAnimationData.EndTime A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDataEndTimeGet()
- {
- tlog.Debug(tag, $"TransitionAnimationDataEndTimeGet START");
-
- var testingTarget = new TransitionAnimationData()
- {
- StartTime = 300,
- EndTime = 600,
- Property = "Size",
- DestinationValue = "100, 100",
- };
-
- var result = testingTarget.EndTime;
- Assert.AreEqual(600, result, "should be equal!");
-
- tlog.Debug(tag, $"TransitionAnimationDataEndTimeGet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimationData EndTime. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.TransitionAnimationData.EndTime A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDataEndTimeSet()
- {
- tlog.Debug(tag, $"TransitionAnimationDataEndTimeSet START");
-
- var testingTarget = new TransitionAnimationData()
- {
- StartTime = 300,
- EndTime = 600,
- Property = "Size",
- DestinationValue = "100, 100",
- };
-
- var result = testingTarget.EndTime;
- Assert.AreEqual(600, result, "should be equal!");
-
- testingTarget.EndTime = 900;
- result = testingTarget.EndTime;
- Assert.AreEqual(900, result, "should be equal!");
-
- tlog.Debug(tag, $"TransitionAnimationDataEndTimeSet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimationData Property. Get")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.TransitionAnimationData.Property A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDataPropertyGet()
- {
- tlog.Debug(tag, $"TransitionAnimationDataPropertyGet START");
-
- var testingTarget = new TransitionAnimationData()
- {
- StartTime = 300,
- EndTime = 600,
- Property = "Size",
- DestinationValue = "100, 100",
- };
-
- var result = testingTarget.Property;
- Assert.AreEqual("Size", result, "should be equal!");
-
- tlog.Debug(tag, $"TransitionAnimationDataPropertyGet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimationData Property. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.TransitionAnimationData.Property A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDataPropertySet()
- {
- tlog.Debug(tag, $"TransitionAnimationDataPropertySet START");
-
- var testingTarget = new TransitionAnimationData()
- {
- StartTime = 300,
- EndTime = 600,
- Property = "Size",
- DestinationValue = "100, 100",
- };
-
- var result = testingTarget.Property;
- Assert.AreEqual("Size", result, "should be equal!");
-
- testingTarget.Property = "Position";
- result = testingTarget.Property;
- Assert.AreEqual("Position", result, "should be equal!");
-
- tlog.Debug(tag, $"TransitionAnimationDataPropertySet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimationData DestinationValue. Get")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.TransitionAnimationData.DestinationValue A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDataDestinationValueGet()
- {
- tlog.Debug(tag, $"TransitionAnimationDataDestinationValueGet START");
-
- var testingTarget = new TransitionAnimationData()
- {
- StartTime = 300,
- EndTime = 600,
- Property = "Size",
- DestinationValue = "100, 100",
- };
-
- var result = testingTarget.DestinationValue;
- Assert.AreEqual("100, 100", result, "should be equal!");
-
- tlog.Debug(tag, $"TransitionAnimationDataDestinationValueGet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionAnimationData DestinationValue. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionAnimations.TransitionAnimationData.DestinationValue A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionAnimationDataDestinationValueSet()
- {
- tlog.Debug(tag, $"TransitionAnimationDataDestinationValueSet START");
-
- var testingTarget = new TransitionAnimationData()
- {
- StartTime = 300,
- EndTime = 600,
- Property = "Size",
- DestinationValue = "100, 100",
- };
-
- var result = testingTarget.DestinationValue;
- Assert.AreEqual("100, 100", result, "should be equal!");
-
- testingTarget.Property = "Position";
- testingTarget.DestinationValue = "0.3f, 0.9f, 0.0f";
- result = testingTarget.DestinationValue;
- Assert.AreEqual("0.3f, 0.9f, 0.0f", result, "should be equal!");
-
- tlog.Debug(tag, $"TransitionAnimationDataDestinationValueSet END (OK)");
- }
- }
-}
[Test]
[Category("P1")]
- [Description("TransitionOptions constructor. With window instance")]
- [Property("SPEC", "Tizen.NUI.TransitionOptions.TransitionOptions C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionOptionsConstructorWithWindowInstance()
- {
- tlog.Debug(tag, $"TransitionOptionsConstructorWithWindowInstance START");
-
- var testingTarget = new TransitionOptions(Window.Instance);
- Assert.IsNotNull(testingTarget, "should not be null.");
- Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionOptionsConstructorWithWindowInstance END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionOptions AnimatedTarget. Get")]
- [Property("SPEC", "Tizen.NUI.TransitionOptions.TransitionOptions A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionOptionsAnimatedTargetGet()
- {
- tlog.Debug(tag, $"TransitionOptionsAnimatedTargetGet START");
-
- var testingTarget = new TransitionOptions(Window.Instance);
- Assert.IsNotNull(testingTarget, "should not be null.");
- Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
-
- View view = new View()
- {
- Size = new Size(30, 50)
- };
- testingTarget.AnimatedTarget = view;
-
- var result = testingTarget.AnimatedTarget;
- Assert.AreEqual(30, result.SizeWidth, "should be equal!");
- Assert.AreEqual(50, result.SizeHeight, "should be equal!");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionOptionsAnimatedTargetGet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionOptions AnimatedTarget. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionOptions.TransitionOptions A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionOptionsAnimatedTargetSet()
- {
- tlog.Debug(tag, $"TransitionOptionsAnimatedTargetSet START");
-
- var testingTarget = new TransitionOptions(Window.Instance);
- Assert.IsNotNull(testingTarget, "should not be null.");
- Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
-
- View view = new View()
- {
- Size = new Size(30, 50)
- };
- testingTarget.AnimatedTarget = view;
-
- var result = testingTarget.AnimatedTarget;
- Assert.AreEqual(30, result.SizeWidth, "should be equal!");
- Assert.AreEqual(50, result.SizeHeight, "should be equal!");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionOptionsAnimatedTargetSet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionOptions EnableTransition. Get")]
- [Property("SPEC", "Tizen.NUI.TransitionOptions.EnableTransition A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionOptionsEnableTransitionGet()
- {
- tlog.Debug(tag, $"TransitionOptionsEnableTransitionGet START");
-
- var testingTarget = new TransitionOptions(Window.Instance);
- Assert.IsNotNull(testingTarget, "should not be null.");
- Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
-
- var result = testingTarget.EnableTransition;
- Assert.IsFalse(result);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionOptionsEnableTransitionGet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionOptions EnableTransition. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionOptions.EnableTransition A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionOptionsEnableTransitionSet()
- {
- tlog.Debug(tag, $"TransitionOptionsEnableTransitionSet START");
-
- var testingTarget = new TransitionOptions(Window.Instance);
- Assert.IsNotNull(testingTarget, "should not be null.");
- Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
-
- testingTarget.EnableTransition = true;
- Assert.IsTrue(testingTarget.EnableTransition);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionOptionsEnableTransitionSet END (OK)");
- }
-
- [Test]
- [Category("P1")]
[Description("TransitionOptions TransitionTag. Get")]
[Property("SPEC", "Tizen.NUI.TransitionOptions.TransitionTag A")]
[Property("SPEC_URL", "-")]
{
tlog.Debug(tag, $"TransitionOptionsTransitionWithChildGet START");
- var testingTarget = new TransitionOptions(Window.Instance);
+ var testingTarget = new TransitionOptions();
Assert.IsNotNull(testingTarget, "should not be null.");
Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
{
tlog.Debug(tag, $"TransitionOptionsTransitionWithChildSet START");
- var testingTarget = new TransitionOptions(Window.Instance);
+ var testingTarget = new TransitionOptions();
Assert.IsNotNull(testingTarget, "should not be null.");
Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
[Test]
[Category("P1")]
- [Description("TransitionOptions ForwardAnimation. Get")]
- [Property("SPEC", "Tizen.NUI.TransitionOptions.ForwardAnimation A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionOptionsForwardAnimationGet()
- {
- tlog.Debug(tag, $"TransitionOptionsForwardAnimationGet START");
-
- var testingTarget = new TransitionOptions(Window.Instance);
- Assert.IsNotNull(testingTarget, "should not be null.");
- Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
-
- View view = new View()
- {
- Size = new Size(150, 300),
- Color = Color.Green
- };
- testingTarget.AnimatedTarget = view;
- testingTarget.EnableTransition = true;
-
- TransitionAnimation forwordAnimation = new TransitionAnimation(300);
- testingTarget.ForwardAnimation = forwordAnimation;
-
- var result = testingTarget.ForwardAnimation;
- Assert.AreEqual(300, result.DurationMilliSeconds, "should be equal!");
-
- view.Dispose();
- forwordAnimation.Dispose();
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionOptionsForwardAnimationGet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionOptions ForwardAnimation. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionOptions.ForwardAnimation A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionOptionsForwardAnimationSet()
- {
- tlog.Debug(tag, $"TransitionOptionsForwardAnimationSet START");
-
- var testingTarget = new TransitionOptions(Window.Instance);
- Assert.IsNotNull(testingTarget, "should not be null.");
- Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
-
- View view = new View()
- {
- Size = new Size(150, 300),
- Color = Color.Green
- };
- testingTarget.AnimatedTarget = view;
- testingTarget.EnableTransition = true;
-
- TransitionAnimation forwordAnimation = new TransitionAnimation(300);
- testingTarget.ForwardAnimation = forwordAnimation;
-
- var result = testingTarget.ForwardAnimation;
- Assert.AreEqual(300, result.DurationMilliSeconds, "should be equal!");
-
- view.Dispose();
- forwordAnimation.Dispose();
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionOptionsForwardAnimationSet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionOptions BackwardAnimation. Get")]
- [Property("SPEC", "Tizen.NUI.TransitionOptions.BackwardAnimation A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionOptionsBackwardAnimationGet()
- {
- tlog.Debug(tag, $"TransitionOptionsBackwardAnimationGet START");
-
- var testingTarget = new TransitionOptions(Window.Instance);
- Assert.IsNotNull(testingTarget, "should not be null.");
- Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
-
- View view = new View()
- {
- Size = new Size(150, 300),
- Color = Color.Green
- };
- testingTarget.AnimatedTarget = view;
- testingTarget.EnableTransition = true;
-
- TransitionAnimation backwordAnimation = new TransitionAnimation(300);
- testingTarget.BackwardAnimation = backwordAnimation;
-
- var result = testingTarget.BackwardAnimation;
- Assert.AreEqual(300, result.DurationMilliSeconds, "should be equal!");
-
- view.Dispose();
- backwordAnimation.Dispose();
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionOptionsBackwardAnimationGet END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("TransitionOptions BackwardAnimation. Set")]
- [Property("SPEC", "Tizen.NUI.TransitionOptions.BackwardAnimation A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TransitionOptionsBackwardAnimationSet()
- {
- tlog.Debug(tag, $"TransitionOptionsBackwardAnimationSet START");
-
- var testingTarget = new TransitionOptions(Window.Instance);
- Assert.IsNotNull(testingTarget, "should not be null.");
- Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
-
- View view = new View()
- {
- Size = new Size(150, 300),
- Color = Color.Green
- };
- testingTarget.AnimatedTarget = view;
- testingTarget.EnableTransition = true;
-
- TransitionAnimation backwordAnimation = new TransitionAnimation(300);
- testingTarget.BackwardAnimation = backwordAnimation;
-
- var result = testingTarget.BackwardAnimation;
- Assert.AreEqual(300, result.DurationMilliSeconds, "should be equal!");
-
- view.Dispose();
- backwordAnimation.Dispose();
- testingTarget.Dispose();
- tlog.Debug(tag, $"TransitionOptionsBackwardAnimationSet END (OK)");
- }
-
- [Test]
- [Category("P1")]
[Description("TransitionOptions Dispose")]
[Property("SPEC", "Tizen.NUI.TransitionOptions.Dispose M")]
[Property("SPEC_URL", "-")]
{
tlog.Debug(tag, $"TransitionOptionsDispose START");
- var testingTarget = new TransitionOptions(Window.Instance);
+ var testingTarget = new TransitionOptions();
Assert.IsNotNull(testingTarget, "should not be null.");
Assert.IsInstanceOf<TransitionOptions>(testingTarget, "should be an instance of TransitionOptions class!");
[Test]
[Category("P1")]
- [Description("NUIApplication TransitionOptions")]
- [Property("SPEC", "Tizen.NUI.NUIApplication.TransitionOptions A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void NUIApplicationTransitionOptions()
- {
- tlog.Debug(tag, $"NUIApplicationTransitionOptions START");
-
- var testingTarget = new NUIApplication();
- Assert.IsNotNull(testingTarget, "Should be not null.");
- Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of Window type.");
-
- TransitionOptions transitionOption = new TransitionOptions(Window.Instance);
- testingTarget.TransitionOptions = transitionOption;
-
- var result = testingTarget.TransitionOptions;
- Assert.IsNotNull(result);
- Assert.IsInstanceOf<TransitionOptions>(result, "Should be an instance of TransitionOptions type.");
-
- result.Dispose();
- transitionOption.Dispose();
- tlog.Debug(tag, $"NUIApplicationTransitionOptions END (OK)");
- }
-
- [Test]
- [Category("P1")]
[Description("NUIApplication OnTerminate")]
[Property("SPEC", "Tizen.NUI.NUIApplication.OnTerminate M")]
[Property("SPEC_URL", "-")]
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/BaseComponents/ModelView")]
+ public class PublicModelViewTest
+ {
+ private const string tag = "NUITEST";
+ private string objUrl = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
+ private string mtlUrl = "https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=d&word=bmp%E4%B8%8B%E8%BD%BD%20%E4%BD%8D%E5%9B%BE&step_word=&hs=2&pn=0&spn=0&di=30360&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&istype=2&ie=utf-8&oe=utf-8&in=&cl=2&lm=-1&st=-1&cs=506847219%2C2820013657&os=4205693751%2C1065126395&simid=0%2C0&adpicid=0&lpn=0&ln=389&fr=&fmq=1389861203899_R&fm=&ic=0&s=undefined&hd=undefined&latest=undefined©right=undefined&se=&sme=&tab=0&width=&height=&face=undefined&ist=&jit=&cg=&bdtype=0&oriquery=bmp%E4%B8%8B%E8%BD%BD&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%3A%2F%2Fbpic.ooopic.com%2F17%2F52%2F38%2F17523837-6a28a5a38920964a54ed89d8e93c3a3c-0.jpg%26refer%3Dhttp%3A%2F%2Fbpic.ooopic.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Djpeg%3Fsec%3D1624445232%26t%3Db9e3c91e4753f12d81e73c7142181326&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3B555rtv_z%26e3Bv54AzdH3Ffij3ty7wgf7AzdH3F80cdnbn0_z%26e3Bip4s&gsm=1&rpstart=0&rpnum=0&islist=&querylist=&force=undefined";
+ private string imageUrl = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView constructor.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.ModelView C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewConstructor()
+ {
+ tlog.Debug(tag, $"ModelViewConstructor START");
+
+ var testingTarget = new ModelView();
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ModelViewConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView constructor.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.ModelView C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewConstructorWith3Urls()
+ {
+ tlog.Debug(tag, $"ModelViewConstructorWith3Urls START");
+
+ var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ModelViewConstructorWith3Urls END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView constructor.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.ModelView C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewConstructorWithModel3dView()
+ {
+ tlog.Debug(tag, $"ModelViewConstructorWithModel3dView START");
+
+ using (ModelView view = new ModelView(objUrl, mtlUrl, imageUrl))
+ {
+ var testingTarget = new ModelView(view);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ModelViewConstructorWithModel3dView END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView Assign.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.Assign M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewAssign()
+ {
+ tlog.Debug(tag, $"ModelViewAssign START");
+
+ using (ModelView view = new ModelView(objUrl, mtlUrl, imageUrl))
+ {
+ var testingTarget = view.Assign(view);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ModelViewAssign END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView ImagesUrl.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.ImagesUrl A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewImagesUrl()
+ {
+ tlog.Debug(tag, $"ModelViewImagesUrl START");
+
+ var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ tlog.Debug(tag, testingTarget.ImagesUrl);
+ testingTarget.ImagesUrl = mtlUrl;
+ tlog.Debug(tag, testingTarget.ImagesUrl);
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ModelViewImagesUrl END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView GeometryUrl.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.GeometryUrl A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewGeometryUrl()
+ {
+ tlog.Debug(tag, $"ModelViewGeometryUrl START");
+
+ var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ tlog.Debug(tag, testingTarget.GeometryUrl);
+ testingTarget.GeometryUrl = mtlUrl;
+ tlog.Debug(tag, testingTarget.GeometryUrl);
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ModelViewGeometryUrl END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView MaterialUrl.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.MaterialUrl A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewMaterialUrl()
+ {
+ tlog.Debug(tag, $"ModelViewMaterialUrl START");
+
+ var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ tlog.Debug(tag, testingTarget.MaterialUrl);
+ testingTarget.MaterialUrl = mtlUrl;
+ tlog.Debug(tag, testingTarget.MaterialUrl);
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ModelViewMaterialUrl END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView IlluminationType.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.IlluminationType A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewIlluminationType()
+ {
+ tlog.Debug(tag, $"ModelViewIlluminationType START");
+
+ var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ tlog.Debug(tag, testingTarget.IlluminationType.ToString());
+ testingTarget.IlluminationType = 2;
+ tlog.Debug(tag, testingTarget.IlluminationType.ToString());
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ModelViewIlluminationType END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView Texture0Url.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.Texture0Url A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewTexture0Url()
+ {
+ tlog.Debug(tag, $"ModelViewTexture0Url START");
+
+ var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ tlog.Debug(tag, testingTarget.Texture0Url);
+ testingTarget.Texture0Url = imageUrl;
+ tlog.Debug(tag, testingTarget.Texture0Url);
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ModelViewTexture0Url END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView Texture1Url.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.Texture1Url A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewTexture1Url()
+ {
+ tlog.Debug(tag, $"ModelViewTexture1Url START");
+
+ var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ tlog.Debug(tag, testingTarget.Texture1Url);
+ testingTarget.Texture1Url = objUrl;
+ tlog.Debug(tag, testingTarget.Texture1Url);
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ModelViewTexture1Url END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView Texture2Url.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.Texture2Url A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewTexture2Url()
+ {
+ tlog.Debug(tag, $"ModelViewTexture2Url START");
+
+ var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ tlog.Debug(tag, testingTarget.Texture2Url);
+ testingTarget.Texture2Url = mtlUrl;
+ tlog.Debug(tag, testingTarget.Texture2Url);
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ModelViewTexture2Url END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ModelView LightPosition.")]
+ [Property("SPEC", "Tizen.NUI.ModelView.LightPosition A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ModelViewLightPosition()
+ {
+ tlog.Debug(tag, $"ModelViewLightPosition START");
+
+ var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);
+ Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
+ Assert.IsInstanceOf<ModelView>(testingTarget, "Should be an instance of ModelView type.");
+
+ tlog.Debug(tag, testingTarget.LightPosition.ToString());
+ testingTarget.LightPosition = new Vector3(0.3f, 0.1f, 0.8f);
+ tlog.Debug(tag, testingTarget.LightPosition.ToString());
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"ModelViewLightPosition END (OK)");
+ }
+ }
+}
try
{
- var result = testingTarget.CreateTransition(source, dest);
+ var result = testingTarget.CreateTransition(source, dest, true);
Assert.IsNotNull(result, "Can't create success object TransitionItem");
Assert.IsInstanceOf<TransitionItem>(result, "Should be an instance of TransitionItem type.");
}