// tlog.Debug(tag, $"WatchApplicationConstructorWithApplication END (OK)");
//}
- [Test]
- [Category("P1")]
- [Description("WatchApplication getCPtr.")]
- [Property("SPEC", "Tizen.NUI.WatchApplication.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WatchApplicationgetCPtr()
- {
- tlog.Debug(tag, $"WatchApplicationgetCPtr START");
-
- using (ImageView imageView = new ImageView())
- {
- var testingTarget = new WatchApplication(imageView.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
-
- try
- {
- WatchApplication.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"WatchApplicationgetCPtr END (OK)");
- }
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication ReleaseSwigCPtr.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.ReleaseSwigCPtr M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationReleaseSwigCPtr()
- //{
- // tlog.Debug(tag, $"WatchApplicationReleaseSwigCPtr START");
-
- // using (ImageView imageView = new ImageView())
- // {
- // var testingTarget = new MyWatchApplication(imageView.SwigCPtr.Handle, false);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
-
- // try
- // {
- // testingTarget.OnReleaseSwigCPtr(imageView.SwigCPtr);
- // }
- // catch (Exception e)
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_delete_WatchApplication' in shared library 'libdali2-csharp-binder.so' */
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // testingTarget.Dispose();
- // }
-
- // tlog.Debug(tag, $"WatchApplicationReleaseSwigCPtr END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication NewWatchApplication.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.NewWatchApplication M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationNewWatchApplication()
- //{
- // tlog.Debug(tag, $"WatchApplicationNewWatchApplication START");
-
- // try
- // {
- // var testingTarget = WatchApplication.NewWatchApplication();
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
- // }
- // catch (Exception e)
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchApplication_New__SWIG_0' in shared library 'libdali2-csharp-binder.so' */
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // tlog.Debug(tag, $"WatchApplicationNewWatchApplication END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication NewWatchApplication. With strings")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.NewWatchApplication M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationNewWatchApplicationWithStrings()
- //{
- // tlog.Debug(tag, $"WatchApplicationNewWatchApplicationWithStrings START");
-
- // try
- // {
- // var dummy = new string[3];
- // var testingTarget = WatchApplication.NewWatchApplication(dummy);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
-
- // testingTarget.Dispose();
- // }
- // catch (Exception e)
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchApplication_New__SWIG_1' in shared library 'libdali2-csharp-binder.so' */
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // tlog.Debug(tag, $"WatchApplicationNewWatchApplicationWithStrings END (OK)");
- //}
-
- //[Test]
- //[Category("P1")]
- //[Description("WatchApplication NewWatchApplication. With strings and style.")]
- //[Property("SPEC", "Tizen.NUI.WatchApplication.NewWatchApplication M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void WatchApplicationNewWithStringsAndStylesheet()
- //{
- // tlog.Debug(tag, $"WatchApplicationNewWithStringsAndStylesheet START");
-
- // try
- // {
- // var args = new string[] { "Dali-demo" };
- // var stylesheet = resource + "style/Test_Style_Manager.json";
- // var testingTarget = WatchApplication.NewWatchApplication(args, stylesheet);
- // Assert.IsNotNull(testingTarget, "should be not null");
- // Assert.IsInstanceOf<WatchApplication>(testingTarget, "should be an instance of testing target class!");
-
- // testingTarget.Dispose();
- // }
- // catch (Exception e)
- // {
- // /** Unable to find an entry point named 'CSharp_Dali_WatchApplication_New__SWIG_2' in shared library 'libdali2-csharp-binder.so' */
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception: Failed!");
- // }
-
- // tlog.Debug(tag, $"WatchApplicationNewWithStringsAndStylesheet END (OK)");
- //}
-
[Test]
[Category("P1")]
[Description("WatchApplication.TimeTickEventArgs. Application.")]
tlog.Debug(tag, $"AlignmentConstructorWithAlignment END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("Alignment getCPtr.")]
- [Property("SPEC", "Tizen.NUI.Alignment.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AlignmentGetCPtr()
- {
- tlog.Debug(tag, $"AlignmentGetCPtr START");
-
- var testingTarget = new Alignment(new ImageView().SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
- Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
-
- try
- {
- Alignment.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"AlignmentGetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("Alignment.Padding constructor.")]
tlog.Debug(tag, $"AlignmentSetPadding END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("Alignment.Padding getCPtr.")]
- [Property("SPEC", "Tizen.NUI.Alignment.Padding getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AlignmentPaddingGetCPtr()
- {
- tlog.Debug(tag, $"AlignmentPaddingGetCPtr START");
-
- var testingTarget = new Alignment.Padding();
- Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
- Assert.IsInstanceOf<Alignment.Padding>(testingTarget, "Should be an instance of Padding type.");
-
- try
- {
- Alignment.Padding.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"AlignmentPaddingGetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("Alignment Assign.")]
tlog.Debug(tag, $"AngleAxisConstructorWithRadianAndVector3 END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("AngleAxis getCPtr.")]
- [Property("SPEC", "Tizen.NUI.AngleAxis.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AngleAxisGetCPtr()
- {
- tlog.Debug(tag, $"AngleAxisGetCPtr START");
-
- var testingTarget = new AngleAxis();
- Assert.IsNotNull(testingTarget, "Can't create success object AngleAxis");
- Assert.IsInstanceOf<AngleAxis>(testingTarget, "Should be an instance of AngleAxis type.");
-
- try
- {
- AngleAxis.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"AngleAxisGetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("AngleAxis constructor. angle.")]
tlog.Debug(tag, $"AngleThresholdPairFirst END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("AngleThresholdPair getCPtr.")]
- [Property("SPEC", "Tizen.NUI.AngleThresholdPair.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AngleThresholdPairGetCPtr()
- {
- tlog.Debug(tag, $"AngleThresholdPairGetCPtr START");
-
- using (Radian t = new Radian(0.3f))
- {
- using (Radian u = new Radian(0.8f))
- {
- var testingTarget = new AngleThresholdPair(t, u);
- Assert.IsNotNull(testingTarget, "Can't create success object AngleThresholdPair");
- Assert.IsInstanceOf<AngleThresholdPair>(testingTarget, "Should be an instance of AngleThresholdPair type.");
-
- try
- {
- AngleThresholdPair.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- }
- }
-
- tlog.Debug(tag, $"AngleThresholdPairGetCPtr END (OK)");
- }
}
}
Assert.IsNotNull(testingTarget, "Should be not null!");
Assert.IsInstanceOf<CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!");
- tlog.Debug(tag, "getCPtr : " + CustomActorImpl.getCPtr(testingTarget));
-
var result = testingTarget.IsRelayoutEnabled();
tlog.Debug(tag, "IsRelayoutEnabled : " + result);
tlog.Debug(tag, $"CustomAlgorithmInterfaceConstructor END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("CustomAlgorithmInterface getCPtr.")]
- [Property("SPEC", "Tizen.NUI.CustomAlgorithmInterface.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void CustomAlgorithmInterfaceGetCPtr()
- {
- tlog.Debug(tag, $"CustomAlgorithmInterfaceGetCPtr START");
-
- var testingTarget = new CustomAlgorithmInterface();
- Assert.IsNotNull(testingTarget, "Can't create success object CustomAlgorithmInterface");
- Assert.IsInstanceOf<CustomAlgorithmInterface>(testingTarget, "Should be an instance of CustomAlgorithmInterface type.");
-
- try
- {
- CustomAlgorithmInterface.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"CustomAlgorithmInterfaceGetCPtr END (OK)");
- }
-
- //[Test]
- //[Category("P1")]
- //[Description("CustomAlgorithmInterface GetNextFocusableView.")]
- //[Property("SPEC", "Tizen.NUI.CustomAlgorithmInterface.GetNextFocusableView M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //[Property("AUTHOR", "guowei.wang@samsung.com")]
- //public void CustomAlgorithmGetNextFocusableView()
- //{
- // tlog.Debug(tag, $"CustomAlgorithmGetNextFocusableView START");
-
- // var testingTarget = new MyCustomAlgorithmInterface();
- // Assert.IsNotNull(testingTarget, "Can't create success object CustomAlgorithmInterface");
- // Assert.IsInstanceOf<CustomAlgorithmInterface>(testingTarget, "Should be an instance of CustomAlgorithmInterface type.");
-
- // using (View current = new View())
- // {
- // current.Size = new Size(2.0f, 4.0f);
- // current.Position = new Position(0.0f, 0.0f);
-
- // using (View proposed = new View())
- // {
- // proposed.Size = new Size(3.0f, 4.0f);
- // proposed.Position = new Position(0.0f, 4.0f);
-
- // try
- // {
- // testingTarget.GetNextFocusableView(current, proposed, View.FocusDirection.Down);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception : Failed!");
- // }
- // }
- // }
-
- // testingTarget.Dispose();
- // tlog.Debug(tag, $"CustomAlgorithmGetNextFocusableView END (OK)");
- //}
}
}
Assert.IsNotNull(testingTarget, "Can't create success object FontMetrics.");
Assert.IsInstanceOf<FontMetrics>(testingTarget, "Should return FontMetrics instance.");
- tlog.Debug(tag, "getCPtr : " + FontMetrics.getCPtr(testingTarget));
-
testingTarget.UnderlineThickness = 0.3f;
tlog.Debug(tag, "UnderlineThickness :" + testingTarget.UnderlineThickness);
Assert.IsNotNull(testingTarget, "should be not null");
Assert.IsInstanceOf<LinearConstrainer>(testingTarget, "should be an instance of testing target class!");
- tlog.Debug(tag, "getCPtr : " + LinearConstrainer.getCPtr(testingTarget));
-
testingTarget.Dispose();
tlog.Debug(tag, $"LinearConstrainerConstructor END (OK)");
}
var testingTarget = new NativeImageSource(100, 50, NativeImageSource.ColorDepth.Default);
Assert.IsNotNull(testingTarget, "Should be not null!");
Assert.IsInstanceOf<NativeImageSource>(testingTarget, "Should be an Instance of NativeImageSource!");
-
- tlog.Debug(tag, "getCPtr : " + NativeImageInterface.getCPtr(testingTarget));
testingTarget.Dispose();
tlog.Debug(tag, $"NativeImageInterfaceConstructor END (OK)");
Assert.IsNotNull(testingTarget, "null handle");
Assert.IsInstanceOf<ObjectRegistry>(testingTarget, "Should return ObjectRegistry instance.");
- tlog.Debug(tag, "getCPtr : " + ObjectRegistry.getCPtr(testingTarget));
-
testingTarget.Dispose();
tlog.Debug(tag, $"ObjectRegistryConstructor END (OK)");
}
tlog.Debug(tag, $"ScrollViewSnapStartedSignalConnect END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("ScrollViewSnapStartedSignal Emit.")]
- [Property("SPEC", "Tizen.NUI.ScrollViewSnapStartedSignal.Emit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ScrollViewSnapStartedSignalEmit()
- {
- tlog.Debug(tag, $"ScrollViewSnapStartedSignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- var testingTarget = new ScrollViewSnapStartedSignal();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ScrollViewSnapStartedSignal>(testingTarget, "Should be an Instance of ScrollViewSnapStartedSignal!");
-
- try
- {
- testingTarget.Emit(new ScrollView.SnapEvent());
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ScrollViewSnapStartedSignalEmit END (OK)");
- }
+ //[Test]
+ //[Category("P1")]
+ //[Description("ScrollViewSnapStartedSignal Emit.")]
+ //[Property("SPEC", "Tizen.NUI.ScrollViewSnapStartedSignal.Emit M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void ScrollViewSnapStartedSignalEmit()
+ //{
+ // tlog.Debug(tag, $"ScrollViewSnapStartedSignalEmit START");
+ // var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ // var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ // tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ // var testingTarget = new ScrollViewSnapStartedSignal();
+ // Assert.IsNotNull(testingTarget, "Should be not null!");
+ // Assert.IsInstanceOf<ScrollViewSnapStartedSignal>(testingTarget, "Should be an Instance of ScrollViewSnapStartedSignal!");
+
+ // try
+ // {
+ // testingTarget.Emit(new ScrollView.SnapEvent());
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // testingTarget.Dispose();
+
+ // tlog.Debug(tag, $"ScrollViewSnapStartedSignalEmit END (OK)");
+ //}
}
}
tlog.Debug(tag, $"VectorUint16Insert END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("VectorUint16Pair Insert. 3 parameters.")]
- [Property("SPEC", "Tizen.NUI.VectorUint16Pair.Insert M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void VectorUint16InsertWith3Parameters()
- {
- tlog.Debug(tag, $"VectorUint16InsertWith3Parameters START");
-
- var testingTarget = new VectorUint16Pair();
- Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
- Assert.IsInstanceOf<VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");
-
- try
- {
- testingTarget.Insert(new Uint16Pair(0, 0), testingTarget.Begin(), testingTarget.End());
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"VectorUint16InsertWith3Parameters END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("VectorUint16Pair Reserve.")]
tlog.Debug(tag, $"VectorUint16ResizeWithUint16Pair END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("VectorUint16Pair Erase.")]
- [Property("SPEC", "Tizen.NUI.VectorUint16Pair.Erase M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void VectorUint16Erase()
- {
- tlog.Debug(tag, $"VectorUint16Erase START");
-
- var testingTarget = new VectorUint16Pair();
- Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
- Assert.IsInstanceOf<VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");
-
- try
- {
- testingTarget.Erase(new Uint16Pair());
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"VectorUint16Erase END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("VectorUint16Pair Erase. With 2 Uint16Pair.")]
- [Property("SPEC", "Tizen.NUI.VectorUint16Pair.Erase M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void VectorUint16EraseWith2Uint16Pair()
- {
- tlog.Debug(tag, $"VectorUint16EraseWith2Uint16Pair START");
-
- var testingTarget = new VectorUint16Pair();
- Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
- Assert.IsInstanceOf<VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");
-
- try
- {
- testingTarget.Erase(new Uint16Pair(), new Uint16Pair());
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"VectorUint16EraseWith2Uint16Pair END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("VectorUint16Pair Remove.")]
- [Property("SPEC", "Tizen.NUI.VectorUint16Pair.Remove M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void VectorUint16Remove()
- {
- tlog.Debug(tag, $"VectorUint16Remove START");
-
- var testingTarget = new VectorUint16Pair();
- Assert.IsNotNull(testingTarget, "Can't create success object VectorUint16Pair.");
- Assert.IsInstanceOf<VectorUint16Pair>(testingTarget, "Should return VectorUint16Pair instance.");
-
- try
- {
- using (Uint16Pair pair = new Uint16Pair(30, 40))
- {
- testingTarget.PushBack(pair);
- testingTarget.Remove(pair);
- }
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"VectorUint16Remove END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("VectorUint16Pair Swap.")]
tlog.Debug(tag, $"VectorUnsignedCharResize END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("VectorUnsignedChar Erase.")]
- [Property("SPEC", "Tizen.NUI.VectorUnsignedChar.Erase M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void VectorUnsignedCharErase()
- {
- tlog.Debug(tag, $"VectorUnsignedCharErase START");
-
- var testingTarget = new VectorUnsignedChar();
- Assert.IsNotNull(testingTarget, "Can't create success object VectorUnsignedChar.");
- Assert.IsInstanceOf<VectorUnsignedChar>(testingTarget, "Should return VectorUnsignedChar instance.");
-
- try
- {
- testingTarget.PushBack(255);
- byte[] arr = new byte[4];
-
- /** 1 parameter : byte[] iterator */
- testingTarget.Erase(arr);
- /** 2 parameters : byte[] first, SWIGTYPE_p_unsigned_char last */
- testingTarget.Erase(arr, testingTarget.End());
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"VectorUnsignedCharErase END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("VectorUnsignedChar Remove.")]
- [Property("SPEC", "Tizen.NUI.VectorUnsignedChar.Remove M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void VectorUnsignedCharRemove()
- {
- tlog.Debug(tag, $"VectorUnsignedCharRemove START");
-
- var testingTarget = new VectorUnsignedChar();
- Assert.IsNotNull(testingTarget, "Can't create success object VectorUnsignedChar.");
- Assert.IsInstanceOf<VectorUnsignedChar>(testingTarget, "Should return VectorUnsignedChar instance.");
-
- try
- {
- testingTarget.PushBack(255);
- byte[] arr = new byte[4];
- testingTarget.Remove(arr);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"VectorUnsignedCharRemove END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("VectorUnsignedChar Swap.")]
tlog.Debug(tag, $"ViewImplNew END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("ViewImpl getCPtr.")]
- [Property("SPEC", "Tizen.NUI.ViewImpl.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewImplGetCPtr()
- {
- tlog.Debug(tag, $"ViewImplGetCPtr START");
-
- using (ViewWrapperImpl impl = new ViewWrapperImpl(CustomViewBehaviour.ViewBehaviourDefault))
- {
- var testingTarget = new ViewWrapper("CustomView", impl);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<ViewWrapper>(testingTarget, "should be an instance of testing target class!");
-
- var result = ViewWrapperImpl.getCPtr(testingTarget.viewWrapperImpl);
- tlog.Debug(tag, "getCptr : " + result);
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"ViewImplGetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("ViewImpl SetStyleName.")]
tlog.Debug(tag, $"ConnectionTrackerInterfaceConstructor END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("ConnectionTrackerInterface getCPtr.")]
- [Property("SPEC", "Tizen.NUI.ConnectionTrackerInterface.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ConnectionTrackerInterfacegetCPtr()
- {
- tlog.Debug(tag, $"ConnectionTrackerInterfacegetCPtr START");
-
- using (View view = new View())
- {
- var testingTarget = new MyConnectionTrackerInterface(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ConnectionTrackerInterface>(testingTarget, "Should be an Instance of ConnectionTrackerInterface!");
-
- try
- {
- ConnectionTrackerInterface.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"ConnectionTrackerInterfacegetCPtr END (OK)");
- }
-
//[Test]
//[Category("P1")]
//[Description("ConnectionTrackerInterface SignalConnected.")]
tlog.Debug(tag, $"ItemFactoryConstructor END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("ItemFactory getCPtr.")]
- [Property("SPEC", "Tizen.NUI.ItemFactory.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ItemFactorygetCPtr()
- {
- tlog.Debug(tag, $"ItemFactorygetCPtr START");
-
- var testingTarget = new ItemFactory();
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ItemFactory>(testingTarget, "Should be an Instance of ItemFactory!");
-
- try
- {
- ItemFactory.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"ItemFactorygetCPtr END (OK)");
- }
-
-
}
}
}
}
- [Test]
- [Category("P1")]
- [Description("ItemIdCollection getCPtr.")]
- [Property("SPEC", "Tizen.NUI.ItemIdCollection.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ItemIdCollectiongetCPtr()
- {
- tlog.Debug(tag, $"ItemIdCollectiongetCPtr START");
-
- uint[] itemId = new uint[] { 1, 2, 3, 4 };
- global::System.Collections.ICollection c = itemId;
-
- var testingTarget = new ItemIdCollection(c);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ItemIdCollection>(testingTarget, "Should be an Instance of ItemIdCollection!");
-
- try
- {
- ItemIdCollection.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"ItemIdCollectiongetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("ItemIdCollection this.")]
tlog.Debug(tag, $"ItemLayoutConstructor END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("ItemLayout getCPtr.")]
- [Property("SPEC", "Tizen.NUI.ItemLayout.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ItemLayoutgetCPtr()
- {
- tlog.Debug(tag, $"ItemLayoutgetCPtr START");
-
- using (View view = new View())
- {
- var testingTarget = new MyItemLayout(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<ItemLayout>(testingTarget, "Should be an Instance of ItemLayout!");
-
- try
- {
- ItemLayout.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"ItemLayoutgetCPtr END (OK)");
- }
}
}
tlog.Debug(tag, $"PageFactoryConstructor END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("PageFactory getCPtr.")]
- [Property("SPEC", "Tizen.NUI.PageFactory.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void PageFactorygetCPtr()
- {
- tlog.Debug(tag, $"PageFactorygetCPtr START");
-
- using (View view = new View())
- {
- view.Size = new Size(20, 40);
- view.BackgroundColor = Color.Cyan;
-
- var testingTarget = new MyPageFactory(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<PageFactory>(testingTarget, "Should be an Instance of PageFactory!");
-
- try
- {
- MyPageFactory.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"PageFactorygetCPtr END (OK)");
- }
}
}
tlog.Debug(tag, $"PageTurnLandscapeViewConstructorWithPageTurnLandscapeView END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("PageTurnLandscapeView getCPtr.")]
- [Property("SPEC", "Tizen.NUI.PageTurnLandscapeView.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void PageTurnLandscapeViewGetCPtr()
- {
- tlog.Debug(tag, $"PageTurnLandscapeViewGetCPtr START");
-
- using (View view = new View())
- {
- var testingTarget = new PageTurnLandscapeView(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<PageTurnLandscapeView>(testingTarget, "Should be an Instance of PageTurnLandscapeView!");
-
- try
- {
- PageTurnLandscapeView.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"PageTurnLandscapeViewGetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("PageTurnLandscapeView DownCast.")]
tlog.Debug(tag, $"PageTurnPortraitViewConstructorWithPageTurnPortraitView END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("PageTurnPortraitView getCPtr.")]
- [Property("SPEC", "Tizen.NUI.PageTurnPortraitView.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void PageTurnPortraitViewGetCPtr()
- {
- tlog.Debug(tag, $"PageTurnPortraitViewGetCPtr START");
-
- using (View view = new View())
- {
- var testingTarget = new PageTurnPortraitView(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "Should be not null!");
- Assert.IsInstanceOf<PageTurnPortraitView>(testingTarget, "Should be an Instance of PageTurnPortraitView!");
-
- try
- {
- PageTurnPortraitView.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"PageTurnPortraitViewGetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("PageTurnPortraitView DownCast.")]
tlog.Debug(tag, $"WebCertificateConstructor END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("WebCertificate ReleaseSwigCPtr.")]
- [Property("SPEC", "Tizen.NUI.WebCertificate.ReleaseSwigCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WebCertificateReleaseSwigCPtr()
- {
- tlog.Debug(tag, $"WebCertificateReleaseSwigCPtr START");
-
- using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- {
- var testingTarget = new MyWebCertificate(webview.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<WebCertificate>(testingTarget, "Should return WebCertificate instance.");
-
- try
- {
- testingTarget.OnReleaseSwigCPtr(testingTarget.SwigCPtr);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"WebCertificateReleaseSwigCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("WebCertificate IsFromMainFrame.")]
tlog.Debug(tag, $"WebConsoleMessageConstructor END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("WebConsoleMessage ReleaseSwigCPtr.")]
- [Property("SPEC", "Tizen.NUI.WebConsoleMessage.ReleaseSwigCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WebConsoleMessageReleaseSwigCPtr()
- {
- tlog.Debug(tag, $"WebConsoleMessageReleaseSwigCPtr START");
-
- using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- {
- var testingTarget = new MyWebConsoleMessage(webview.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<WebConsoleMessage>(testingTarget, "Should return WebConsoleMessage instance.");
-
- try
- {
- testingTarget.OnReleaseSwigCPtr(testingTarget.SwigCPtr);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
- }
-
- tlog.Debug(tag, $"WebConsoleMessageReleaseSwigCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("WebConsoleMessage Source.")]
tlog.Debug(tag, $"WebContextMenuItemConstructor END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("WebContextMenuItem getCPtr.")]
- [Property("SPEC", "Tizen.NUI.WebContextMenuItem.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WebContextMenuItemGetCPtr()
- {
- tlog.Debug(tag, $"WebContextMenuItemGetCPtr START");
-
- using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- {
- WebContextMenu menu = new WebContextMenu(webview.SwigCPtr.Handle, false);
-
- var testingTarget = new WebContextMenuItem(menu.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<WebContextMenuItem>(testingTarget, "Should return WebContextMenuItem instance.");
-
- var result = WebContextMenuItem.getCPtr(testingTarget);
- tlog.Debug(tag, "getCPtr : " + result);
-
- menu.Dispose();
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"WebContextMenuItemGetCPtr END (OK)");
- }
}
}
[Property("AUTHOR", "guowei.wang@samsung.com")]
public async Task WebCookieManagerCookieChanged()
{
- tlog.Debug(tag, $"WebSecurityOriginListConstructor START");
+ tlog.Debug(tag, $"WebCookieManagerCookieChanged START");
var webview = new Tizen.NUI.BaseComponents.WebView(runtimeArgs)
{
testingTarget.CookieChanged -= OnCookieChanged;
testingTarget.Dispose();
- tlog.Debug(tag, $"WebSecurityOriginListConstructor END (OK)");
+ tlog.Debug(tag, $"WebCookieManagerCookieChanged END (OK)");
}
[Test]
[Category("P1")]
[Description("WebCookieManager SetPersistentStorage.")]
- [Property("SPEC", "Tizen.NUI.WebCookieManager.SetPersistentStorage A")]
+ [Property("SPEC", "Tizen.NUI.WebCookieManager.SetPersistentStorage M")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
+ [Property("CRITERIA", "MR")]
[Property("COVPARAM", "")]
[Property("AUTHOR", "guowei.wang@samsung.com")]
public void WebCookieManagerSetPersistentStorage()
tlog.Debug(tag, $"WebFormRepostPolicyDecisionMakerConstructor END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("WebFormRepostPolicyDecisionMaker ReleaseSwigCPtr.")]
- [Property("SPEC", "Tizen.NUI.WebFormRepostPolicyDecisionMaker.ReleaseSwigCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WebFormRepostPolicyDecisionMakerReleaseSwigCPtr()
- {
- tlog.Debug(tag, $"WebFormRepostPolicyDecisionMakerReleaseSwigCPtr START");
-
- using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- {
- var testingTarget = new MyWebFormRepostPolicyDecisionMaker(webview.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<WebFormRepostPolicyDecisionMaker>(testingTarget, "Should return WebFormRepostPolicyDecisionMaker instance.");
-
- try
- {
- testingTarget.OnReleaseSwigCPtr(testingTarget.SwigCPtr);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
- }
-
- tlog.Debug(tag, $"WebFormRepostPolicyDecisionMakerReleaseSwigCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("WebFormRepostPolicyDecisionMaker Reply.")]
tlog.Debug(tag, $"WebHttpRequestInterceptorConstructor END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("WebHttpRequestInterceptor ReleaseSwigCPtr.")]
- [Property("SPEC", "Tizen.NUI.WebHttpRequestInterceptor.ReleaseSwigCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WebHttpRequestInterceptorReleaseSwigCPtr()
- {
- tlog.Debug(tag, $"WebHttpRequestInterceptorReleaseSwigCPtr START");
-
- using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- {
- var testingTarget = new MyWebHttpRequestInterceptor(webview.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<WebHttpRequestInterceptor>(testingTarget, "Should return WebHttpRequestInterceptor instance.");
-
- try
- {
- testingTarget.OnReleaseSwigCPtr(testingTarget.SwigCPtr);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
- }
-
- tlog.Debug(tag, $"WebHttpRequestInterceptorReleaseSwigCPtr END (OK)");
- }
}
}
tlog.Debug(tag, $"WebSecurityOriginConstructor END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("WebSecurityOrigin getCPtr.")]
- [Property("SPEC", "Tizen.NUI.WebSecurityOrigin.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WebSecurityOriginGetCPtr()
- {
- tlog.Debug(tag, $"WebSecurityOriginGetCPtr START");
-
- using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- {
- var testingTarget = new WebSecurityOrigin(webview.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<WebSecurityOrigin>(testingTarget, "Should return WebSecurityOrigin instance.");
-
- var result = WebSecurityOrigin.getCPtr(testingTarget);
- tlog.Debug(tag, "getCPtr : " + result);
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"WebSecurityOriginGetCPtr END (OK)");
- }
}
}
tlog.Debug(tag, $"WidgetApplicationAssign END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("WidgetApplication getCPtr.")]
- [Property("SPEC", "Tizen.NUI.WidgetApplication.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WidgetApplicationgetCPtr()
- {
- tlog.Debug(tag, $"WidgetApplicationgetCPtr START");
-
- Widget widget = new Widget();
-
- var testingTarget = new WidgetApplication(widget.GetIntPtr(), false);
- Assert.IsNotNull(testingTarget, "Can't create success object WidgetApplication");
- Assert.IsInstanceOf<WidgetApplication>(testingTarget, "Should be an instance of WidgetApplication type.");
-
- try
- {
- WidgetApplication.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- widget.Dispose();
- widget = null;
-
- testingTarget.Dispose();
- testingTarget = null;
- tlog.Debug(tag, $"WidgetApplicationgetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("WidgetApplication ReleaseSwigCPtr.")]
tlog.Debug(tag, $"WidgetApplicationReleaseSwigCPtr END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("WidgetApplication RegisterWidgetCreatingFunction.")]
- [Property("SPEC", "Tizen.NUI.WidgetApplication.RegisterWidgetCreatingFunction M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WidgetApplicationRegisterWidgetCreatingFunction()
- {
- tlog.Debug(tag, $"WidgetApplicationRegisterWidgetCreatingFunction START");
-
- Widget widget = new Widget();
-
- var testingTarget = new MyWidgetApplication(widget.GetIntPtr(), false);
- Assert.IsNotNull(testingTarget, "Can't create success object WidgetApplication");
- Assert.IsInstanceOf<WidgetApplication>(testingTarget, "Should be an instance of WidgetApplication type.");
-
- global::System.Collections.Generic.Dictionary<Type, string> widgetInfo = new global::System.Collections.Generic.Dictionary<Type, string>(){
- { typeof(Widget), "w1@org.tizen.WidgetApp"} };
-
- testingTarget.RegisterWidgetInfo(widgetInfo);
-
- try
- {
- testingTarget.RegisterWidgetCreatingFunction();
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- widget.Dispose();
- widget = null;
-
- testingTarget.Dispose();
- testingTarget = null;
- tlog.Debug(tag, $"WidgetApplicationRegisterWidgetCreatingFunction END (OK)");
- }
+ //[Test]
+ //[Category("P1")]
+ //[Description("WidgetApplication RegisterWidgetCreatingFunction.")]
+ //[Property("SPEC", "Tizen.NUI.WidgetApplication.RegisterWidgetCreatingFunction M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void WidgetApplicationRegisterWidgetCreatingFunction()
+ //{
+ // tlog.Debug(tag, $"WidgetApplicationRegisterWidgetCreatingFunction START");
+
+ // Widget widget = new Widget();
+
+ // var testingTarget = new MyWidgetApplication(widget.GetIntPtr(), false);
+ // Assert.IsNotNull(testingTarget, "Can't create success object WidgetApplication");
+ // Assert.IsInstanceOf<WidgetApplication>(testingTarget, "Should be an instance of WidgetApplication type.");
+
+ // global::System.Collections.Generic.Dictionary<Type, string> widgetInfo = new global::System.Collections.Generic.Dictionary<Type, string>(){
+ // { typeof(Widget), "w1@org.tizen.WidgetApp"} };
+
+ // testingTarget.RegisterWidgetInfo(widgetInfo);
+
+ // try
+ // {
+ // testingTarget.RegisterWidgetCreatingFunction();
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // widget.Dispose();
+ // widget = null;
+
+ // testingTarget.Dispose();
+ // testingTarget = null;
+ // tlog.Debug(tag, $"WidgetApplicationRegisterWidgetCreatingFunction END (OK)");
+ //}
[Test]
[Category("P1")]
tlog.Debug(tag, $"WidgetApplicationRegisterWidgetInfo END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("WidgetApplication AddWidgetInfo.")]
- [Property("SPEC", "Tizen.Applications.WidgetApplication.AddWidgetInfo M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WidgetApplicationAddWidgetInfo()
- {
- tlog.Debug(tag, $"WidgetApplicationAddWidgetInfo START");
-
- Widget widget = new Widget();
-
- var testingTarget = new WidgetApplication(widget.GetIntPtr(), false);
- Assert.IsNotNull(testingTarget, "Can't create success object WidgetApplication");
- Assert.IsInstanceOf<WidgetApplication>(testingTarget, "Should be an instance of WidgetApplication type.");
-
- global::System.Collections.Generic.Dictionary<Type, string> widgetInfo = new global::System.Collections.Generic.Dictionary<Type, string>(){
- { typeof(Widget), "w1@org.tizen.WidgetApp"} };
- testingTarget.RegisterWidgetInfo(widgetInfo);
+ //[Test]
+ //[Category("P1")]
+ //[Description("WidgetApplication AddWidgetInfo.")]
+ //[Property("SPEC", "Tizen.Applications.WidgetApplication.AddWidgetInfo M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void WidgetApplicationAddWidgetInfo()
+ //{
+ // tlog.Debug(tag, $"WidgetApplicationAddWidgetInfo START");
+
+ // Widget widget = new Widget();
+
+ // var testingTarget = new WidgetApplication(widget.GetIntPtr(), false);
+ // Assert.IsNotNull(testingTarget, "Can't create success object WidgetApplication");
+ // Assert.IsInstanceOf<WidgetApplication>(testingTarget, "Should be an instance of WidgetApplication type.");
+
+ // global::System.Collections.Generic.Dictionary<Type, string> widgetInfo = new global::System.Collections.Generic.Dictionary<Type, string>(){
+ // { typeof(Widget), "w1@org.tizen.WidgetApp"} };
+ // testingTarget.RegisterWidgetInfo(widgetInfo);
- try
- {
- testingTarget.AddWidgetInfo(new global::System.Collections.Generic.Dictionary<Type, string>(){
- { typeof(WidgetApplication), "w2@org.tizen.WidgetApp"} });
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- widget.Dispose();
- widget = null;
-
- testingTarget.Dispose();
- testingTarget = null;
- tlog.Debug(tag, $"WidgetApplicationAddWidgetInfo END (OK)");
- }
+ // try
+ // {
+ // testingTarget.AddWidgetInfo(new global::System.Collections.Generic.Dictionary<Type, string>(){
+ // { typeof(WidgetApplication), "w2@org.tizen.WidgetApp"} });
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // widget.Dispose();
+ // widget = null;
+
+ // testingTarget.Dispose();
+ // testingTarget = null;
+ // tlog.Debug(tag, $"WidgetApplicationAddWidgetInfo END (OK)");
+ //}
[Test]
[Category("P1")]
{
using tlog = Tizen.Log;
- internal class MockNameSpaceResolver : IXmlNamespaceResolver
- {
- public global::System.Collections.Generic.IDictionary<string, string> GetNamespacesInScope(XmlNamespaceScope scope)
- {
- throw new NotImplementedException();
- }
-
- public string LookupNamespace(string prefix)
- {
- return "";
- }
-
- public string LookupPrefix(string namespaceName)
- {
- return "";
- }
- }
-
[TestFixture]
[Description("internal/Xaml/ApplyPropertiesVisitor")]
public class InternalApplyPropertiesVisitorTest
private const string tag = "NUITEST";
private ApplyPropertiesVisitor visitor;
- public class MarkupExtension : IMarkupExtension
- {
- public object ProvideValue(global::System.IServiceProvider serviceProvider)
- {
- return "provided value";
- }
- }
-
- public class ArrayListOwner
- {
- public ArrayList ArrayList { get; } = new ArrayList();
- }
-
- internal class INodeImpl : INode
- {
- public global::System.Collections.Generic.List<string> IgnorablePrefixes { get; set; }
- public global::System.Xml.IXmlNamespaceResolver NamespaceResolver => new INodeImpl().NamespaceResolver;
- public INode Parent { get; set; }
- public void Accept(IXamlNodeVisitor visitor, INode parentNode) { }
- public INode Clone() { return new INodeImpl(); }
- }
-
[SetUp]
public void Init()
{
visitor = null;
tlog.Info(tag, "Destroy() is called!");
}
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor ApplyPropertiesVisitor")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.ApplyPropertiesVisitor C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- public void ApplyPropertiesVisitorConstructor()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorConstructor START");
-
- HydrationContext context = new HydrationContext();
- Assert.IsNotNull(context, "null HydrationContext");
-
- ApplyPropertiesVisitor applyPropertiesVisitor = new ApplyPropertiesVisitor(context, false);
- Assert.IsNotNull(applyPropertiesVisitor, "null ApplyPropertiesVisitor");
- Assert.IsInstanceOf<ApplyPropertiesVisitor>(applyPropertiesVisitor, "Should return ApplyPropertiesVisitor instance.");
-
- tlog.Debug(tag, $"ApplyPropertiesVisitorConstructor END");
- }
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor VisitingMode")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.VisitingMode A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- public void ApplyPropertiesVisitorVisitingMode()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorVisitingMode START");
-
- try
- {
- var result = visitor.VisitingMode;
- tlog.Debug(tag, "VisitingMode : " + result);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ApplyPropertiesVisitorVisitingMode END");
- }
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor StopOnDataTemplate")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.StopOnDataTemplate A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- public void ApplyPropertiesVisitorStopOnDataTemplate()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorStopOnDataTemplate START");
-
- try
- {
- var result = visitor.StopOnDataTemplate;
- tlog.Debug(tag, "StopOnDataTemplate : " + result);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ApplyPropertiesVisitorStopOnDataTemplate END");
- }
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor StopOnResourceDictionary ")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.StopOnResourceDictionary A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- public void ApplyPropertiesVisitorStopOnResourceDictionary()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorStopOnResourceDictionary START");
-
- try
- {
- var result = visitor.StopOnResourceDictionary;
- tlog.Debug(tag, "StopOnResourceDictionary : " + result);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ApplyPropertiesVisitorStopOnResourceDictionary END");
- }
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor VisitNodeOnDataTemplate ")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.VisitNodeOnDataTemplate A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- public void ApplyPropertiesVisitorVisitNodeOnDataTemplate()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorVisitNodeOnDataTemplate START");
-
- try
- {
- var result = visitor.VisitNodeOnDataTemplate;
- tlog.Debug(tag, "VisitNodeOnDataTemplate : " + result);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ApplyPropertiesVisitorVisitNodeOnDataTemplate END");
- }
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor SkipChildren")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.SkipChildren M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ApplyPropertiesVisitorSkipChildren()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorSkipChildren START");
-
- try
- {
- var child = new INodeImpl();
- Assert.IsNotNull(child, "null INodeImpl object.");
-
- var parent = new INodeImpl();
- Assert.IsNotNull(parent, "null INodeImpl object.");
-
- var result = visitor.SkipChildren(child, parent);
- tlog.Debug(tag, "SkipChildren : " + result);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ApplyPropertiesVisitorSkipChildren END");
- }
-
- public class IXmlNamespaceResolverImplement : IXmlNamespaceResolver
- {
- public IDictionary<string, string> GetNamespacesInScope(XmlNamespaceScope scope)
- {
- throw new NotImplementedException();
- }
-
- public string LookupNamespace(string prefix)
- {
- throw new NotImplementedException();
- }
-
- public string LookupPrefix(string namespaceName)
- {
- throw new NotImplementedException();
- }
- }
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor IsResourceDictionary")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.IsResourceDictionary M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ApplyPropertiesVisitorIsResourceDictionary()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorIsResourceDictionary START");
-
- try
- {
- HydrationContext context = new HydrationContext();
- IList<XmlType> list = new List<XmlType>();
- XmlType xmlType = new XmlType("myNameSpace", "myName", list);
- Assert.IsNotNull(xmlType, "null XmlType");
- IXmlNamespaceResolverImplement i1 = new IXmlNamespaceResolverImplement();
- Assert.IsNotNull(i1, "null IXmlNamespaceResolverImplement");
- ElementNode n1 = new ElementNode(xmlType, "myNameSpace", i1);
- Assert.IsNotNull(n1, "null ElementNode");
- context.Types[n1] = typeof(ResourceDictionary);
- ApplyPropertiesVisitor a2 = new ApplyPropertiesVisitor(context, false);
- Assert.IsNotNull(a2, "null ApplyPropertiesVisitor");
- bool b1 = a2.IsResourceDictionary(n1);
- Assert.True(b1, "Should be true");
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
- tlog.Debug(tag, $"ApplyPropertiesVisitorIsResourceDictionary END");
-
- }
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor Visit")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.Visit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ApplyPropertiesVisitorVisit1()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorVisit1 START");
-
- try
- {
- HydrationContext context = new HydrationContext();
- object o1 = new object();
- IXmlNamespaceResolverImplement i1 = new IXmlNamespaceResolverImplement();
- Assert.IsNotNull(i1, "null IXmlNamespaceResolverImplement");
- ValueNode valueNode = new ValueNode(o1, i1);
- Assert.IsNotNull(valueNode, "null ValueNode");
-
- INodeImpl nodeImplement = new INodeImpl();
- Assert.IsNotNull(nodeImplement, "null INodeImplement");
- context.Values[valueNode] = o1;
- context.Values[nodeImplement] = o1;
- ApplyPropertiesVisitor a2 = new ApplyPropertiesVisitor(context, false);
- Assert.IsNotNull(a2, "null ApplyPropertiesVisitor");
- a2.Visit(valueNode, nodeImplement);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
- tlog.Debug(tag, $"ApplyPropertiesVisitorVisit1 END");
- }
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor Visit")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.Visit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ApplyPropertiesVisitorVisit2()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorVisit2 START");
-
- try
- {
- HydrationContext context = new HydrationContext();
- object o1 = new object();
- INodeImpl nodeImplement = new INodeImpl();
- Assert.IsNotNull(nodeImplement, "null INodeImplement");
-
- IList<XmlType> list = null;
- XmlType xmlType = new XmlType("myNameSpace", "myName", list);
- Assert.IsNotNull(xmlType, "null XmlType");
- IXmlNamespaceResolverImplement ix1 = new IXmlNamespaceResolverImplement();
- Assert.IsNotNull(ix1, "null IXmlNamespaceResolverImplement");
- ElementNode n1 = new ElementNode(xmlType, "myNameSpace", ix1);
- Assert.IsNotNull(n1, "null ElementNode");
- context.Values[n1] = o1;
- context.Values[nodeImplement] = o1;
- ApplyPropertiesVisitor a2 = new ApplyPropertiesVisitor(context, false);
- Assert.IsNotNull(a2, "null ApplyPropertiesVisitor");
- a2.Visit(n1, nodeImplement);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
- tlog.Debug(tag, $"ApplyPropertiesVisitorVisit2 END");
-
- }
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor TryGetPropertyName")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.TryGetPropertyName M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ApplyPropertiesVisitorTryGetPropertyName()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorTryGetPropertyName START");
-
- try
- {
- INodeImpl n1 = new INodeImpl();
- Assert.IsNotNull(n1, "null INodeImplement");
- INodeImpl n2 = new INodeImpl();
- Assert.IsNotNull(n2, "null INodeImplement");
- XmlName xmlName = new XmlName();
- Assert.IsNotNull(xmlName, "null XmlName");
- ApplyPropertiesVisitor.TryGetPropertyName(n1, n2, out xmlName);
- }
- catch (Exception e)
- {
- Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
-
- tlog.Debug(tag, $"ApplyPropertiesVisitorTryGetPropertyName END");
- }
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor IsCollectionItem")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.IsCollectionItem M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ApplyPropertiesVisitorIsCollectionItem()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorIsCollectionItem START");
-
- try
- {
- INodeImpl n1 = new INodeImpl();
- Assert.IsNotNull(n1, "null INodeImplement");
- INodeImpl n2 = new INodeImpl();
- Assert.IsNotNull(n2, "null INodeImplement");
-
- ApplyPropertiesVisitor.IsCollectionItem(n1, n2);
- }
- catch (Exception e)
- {
- Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
-
- tlog.Debug(tag, $"ApplyPropertiesVisitorIsCollectionItem END");
- }
-
- //[Test]
- //[Category("P1")]
- //[Description("ApplyPropertiesVisitor GetContentPropertyName")]
- //[Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.GetContentPropertyName M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void ApplyPropertiesVisitorGetContentPropertyName()
- //{
- // tlog.Debug(tag, $"ApplyPropertiesVisitorGetContentPropertyName START");
-
- // try
- // {
- // System.Reflection.TypeInfo typeInfo = new System.Reflection.TypeInfo();
- // ApplyPropertiesVisitor.GetContentPropertyName(typeInfo);
- // }
- // catch (Exception e)
- // {
- // Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
-
- // tlog.Debug(tag, $"ApplyPropertiesVisitorGetContentPropertyName END");
- // Assert.Pass("ApplyPropertiesVisitorGetContentPropertyName");
- //}
-
- public class IXmlLineInfoImplement : IXmlLineInfo
- {
- public int LineNumber => throw new NotImplementedException();
-
- public int LinePosition => throw new NotImplementedException();
-
- public bool HasLineInfo()
- {
- throw new NotImplementedException();
- }
- }
-
- //[Test]
- //[Category("P1")]
- //[Description("ApplyPropertiesVisitor SetPropertyValue")]
- //[Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.SetPropertyValue M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void ApplyPropertiesVisitorSetPropertyValue()
- //{
- // tlog.Debug(tag, $"ApplyPropertiesVisitorSetPropertyValue START");
-
- // try
- // {
- // object o1 = new object();
- // XmlName xmlName = new XmlName();
- // Assert.IsNotNull(xmlName, "null XmlName");
- // object value = new object();
- // object rootElement = new object();
- // INodeImplement nodeImplement = new INodeImplement();
- // Assert.IsNotNull(nodeImplement, "null INodeImplement");
- // HydrationContext context = new HydrationContext();
- // Assert.IsNotNull(context, "null HydrationContext");
- // IXmlLineInfoImplement xmlLineInfoImplement = new IXmlLineInfoImplement();
- // Assert.IsNotNull(xmlLineInfoImplement, "null IXmlLineInfoImplement");
-
- // ApplyPropertiesVisitor.SetPropertyValue(o1, xmlName, value, rootElement, nodeImplement, context, xmlLineInfoImplement);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"ApplyPropertiesVisitorSetPropertyValue END");
- //}
-
- [Test]
- [Category("P1")]
- [Description("ApplyPropertiesVisitor GetPropertyValue")]
- [Property("SPEC", "Tizen.NUI.ApplyPropertiesVisitor.GetPropertyValue M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ApplyPropertiesVisitorGetPropertyValue()
- {
- tlog.Debug(tag, $"ApplyPropertiesVisitorGetPropertyValue START");
-
- try
- {
- const string NAMESPACE = "clr-namespace:Tizen.NUI.Devel.Tests;assembly=Tizen.NUI.Devel.Tests";
- var resolver = new MockNameSpaceResolver();
- var type = new XmlType(NAMESPACE, "InternalApplyPropertiesVisitorTest+MarkupExtension", null);
- var listNode = new ListNode(new[]
- {
- new ElementNode(type, NAMESPACE, resolver),
- new ElementNode(type, NAMESPACE, resolver)
- }, resolver);
- var rootElement = new ArrayListOwner();
- var rootType = new XmlType(NAMESPACE, "InternalApplyPropertiesVisitorTest+ArrayListOwner", null);
- var rootNode = new XamlLoader.RuntimeRootNode(rootType, rootElement, null);
- var context = new HydrationContext { RootElement = rootElement };
-
- rootNode.Properties.Add(new XmlName(null, "ArrayList"), listNode);
- rootNode.Accept(new XamlNodeVisitor((node, parent) => node.Parent = parent), null);
- rootNode.Accept(new CreateValuesVisitor(context), null);
- rootNode.Accept(new ApplyPropertiesVisitor(context), null);
-
- Assert.AreEqual("provided value", rootElement.ArrayList[0]);
- Assert.AreEqual("provided value", rootElement.ArrayList[1]);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
- tlog.Debug(tag, $"ApplyPropertiesVisitorGetPropertyValue END");
- }
}
}
\ No newline at end of file
using System.Collections.Generic;
using System.Xml;
using Tizen.NUI.Xaml;
+using Tizen.NUI.Binding.Internals;
namespace Tizen.NUI.Devel.Tests
{
- using Tizen.NUI.Binding.Internals;
using tlog = Tizen.Log;
[TestFixture]
tlog.Debug(tag, $"ExpandMarkupsVisitorSkipChildren END");
}
-
- public class IXmlNamespaceResolverImplement : IXmlNamespaceResolver
- {
- public IDictionary<string, string> GetNamespacesInScope(XmlNamespaceScope scope)
- {
- throw new NotImplementedException();
- }
-
- public string LookupNamespace(string prefix)
- {
- throw new NotImplementedException();
- }
-
- public string LookupPrefix(string namespaceName)
- {
- throw new NotImplementedException();
- }
- }
-
- [Test]
- [Category("P1")]
- [Description("ExpandMarkupsVisitor IsResourceDictionary")]
- [Property("SPEC", "Tizen.NUI.ExpandMarkupsVisitor.IsResourceDictionary M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ExpandMarkupsVisitorIsResourceDictionary()
- {
- tlog.Debug(tag, $"ExpandMarkupsVisitorIsResourceDictionary START");
-
- try
- {
- IList<XmlType> list = null;
- XmlType xmlType = new XmlType("myNameSpace", "myName", list);
- Assert.IsNotNull(xmlType, "null XmlType");
-
- IXmlNamespaceResolverImplement i1 = new IXmlNamespaceResolverImplement();
- Assert.IsNotNull(i1, "null IXmlNamespaceResolverImplement");
- ElementNode n1 = new ElementNode(xmlType, "myNameSpace", i1);
- Assert.IsNotNull(n1, "null ElementNode");
-
- bool b1 = visitor.IsResourceDictionary(n1);
- }
- catch (Exception e)
- {
- Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
-
- tlog.Debug(tag, $"ExpandMarkupsVisitorIsResourceDictionary END");
- }
-
- [Test]
- [Category("P1")]
- [Description("ExpandMarkupsVisitor Visit")]
- [Property("SPEC", "Tizen.NUI.ExpandMarkupsVisitor.Visit M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ExpandMarkupsVisitorVisit()
- {
- tlog.Debug(tag, $"ExpandMarkupsVisitorVisit START");
-
- try
- {
- IXmlNamespaceResolverImplement i1 = new IXmlNamespaceResolverImplement();
- Assert.IsNotNull(i1, "null IXmlNamespaceResolverImplement");
- MarkupNode markupnode = new MarkupNode("markup", i1);
- Assert.IsNotNull(markupnode, "null MarkupNode");
- INodeImpl parentNode = new INodeImpl();
- Assert.IsNotNull(parentNode, "null INodeImplement");
- visitor.Visit(markupnode, parentNode);
- }
- catch (Exception e)
- {
- Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
-
- tlog.Debug(tag, $"ExpandMarkupsVisitorVisit END");
- }
-
- public class IServiceProviderImplement : IServiceProvider
- {
- public object GetService(Type serviceType)
- {
- throw new NotImplementedException();
- }
- }
-
- //[Test]
- //[Category("P1")]
- //[Description("ExpandMarkupsVisitor Parse")]
- //[Property("SPEC", "Tizen.NUI.ExpandMarkupsVisitor.MarkupExpansionParser.Parse M")]
- //[Property("SPEC_URL", "-")]
- //[Property("CRITERIA", "MR")]
- //public void ExpandMarkupsVisitorParse()
- //{
- // tlog.Debug(tag, $"ExpandMarkupsVisitorParse START");
-
- // try
- // {
- // MarkupExpansionParser markupExpansionParser = new MarkupExpansionParser();
- // Assert.IsNotNull(markupExpansionParser, "null MarkupExpansionParser");
- // IServiceProviderImplement serviceProviderImplement = new IServiceProviderImplement();
- // Assert.IsNotNull(serviceProviderImplement, "null IServiceProviderImplement");
-
- // string s1 = new string('a', 4);
- // markupExpansionParser.Parse("matchString", ref s1, serviceProviderImplement);
- // }
- // catch (Exception e)
- // {
- // tlog.Debug(tag, e.Message.ToString());
- // Assert.Fail("Caught Exception" + e.ToString());
- // }
- // tlog.Debug(tag, $"ExpandMarkupsVisitorParse END");
- //}
}
}
\ No newline at end of file
tlog.Debug(tag, $"NamescopingVisitorSkipChildren END");
}
- public class IXmlNamespaceResolverImplement : IXmlNamespaceResolver
- {
- public IDictionary<string, string> GetNamespacesInScope(XmlNamespaceScope scope)
- {
- throw new NotImplementedException();
- }
-
- public string LookupNamespace(string prefix)
- {
- throw new NotImplementedException();
- }
-
- public string LookupPrefix(string namespaceName)
- {
- throw new NotImplementedException();
- }
- }
-
- [Test]
- [Category("P1")]
- [Description("NamescopingVisitor IsResourceDictionary")]
- [Property("SPEC", "Tizen.NUI.NamescopingVisitor.IsResourceDictionary M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void NamescopingVisitorIsResourceDictionary()
- {
- tlog.Debug(tag, $"NamescopingVisitorIsResourceDictionary START");
-
- try
- {
- Assert.IsNotNull(visitor, "null PruneIgnoredNodesVisitor");
- IList<XmlType> list = null;
- XmlType xmlType = new XmlType("myNameSpace", "myName", list);
-
- IXmlNamespaceResolverImplement i1 = new IXmlNamespaceResolverImplement();
- ElementNode n1 = new ElementNode(xmlType, "myNameSpace", i1);
-
- bool b1 = visitor.IsResourceDictionary(n1);
- }
- catch (Exception e)
- {
- Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
-
- tlog.Debug(tag, $"NamescopingVisitorIsResourceDictionary END");
- }
}
}
\ No newline at end of file
tlog.Info(tag, "Destroy() is called!");
}
- [Test]
- [Category("P1")]
- [Description("ResourcesLoader CreateFromResource<T>")]
- [Property("SPEC", "Tizen.NUI.Xaml.ResourcesLoader.CreateFromResource<T> M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- public void ResourcesLoaderCreateFromResourceTest()
- {
- tlog.Debug(tag, $"ResourcesLoaderCreateFromResourceTest START");
+ //[Test]
+ //[Category("P1")]
+ //[Description("ResourcesLoader CreateFromResource<T>")]
+ //[Property("SPEC", "Tizen.NUI.Xaml.ResourcesLoader.CreateFromResource<T> M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //public void ResourcesLoaderCreateFromResourceTest()
+ //{
+ // tlog.Debug(tag, $"ResourcesLoaderCreateFromResourceTest START");
- try
- {
- var rl = new ResourcesLoader();
- var ret = rl.CreateFromResource<View>("layout/BaseXamlSample3.xaml", typeof(UIElement).Assembly, null);
- Assert.IsNotNull(ret, "Should not be null");
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
+ // try
+ // {
+ // var rl = new ResourcesLoader();
+ // var ret = rl.CreateFromResource<View>("layout/BaseXamlSample3.xaml", typeof(UIElement).Assembly, null);
+ // Assert.IsNotNull(ret, "Should not be null");
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception : Failed!");
+ // }
- tlog.Debug(tag, $"ResourcesLoaderCreateFromResourceTest END");
- }
+ // tlog.Debug(tag, $"ResourcesLoaderCreateFromResourceTest END");
+ //}
[Test]
[Category("P1")]
Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
- tlog.Debug(tag, "CPtr : " + Accessibility.AccessibilityManager.getCPtr(testingTarget));
-
testingTarget.Dispose();
tlog.Debug(tag, $"AccessibilityManagerConstructor END (OK)");
}
Assert.IsNotNull(testingTarget, "should be not null");
Assert.IsInstanceOf<AlphaFunction>(testingTarget, "should be an instance of testing target class!");
- tlog.Debug(tag, "getCPtr : " + AlphaFunction.getCPtr(testingTarget));
-
testingTarget.Dispose();
tlog.Debug(tag, $"AlphaFunctionConstructorWithUserDefinedFunction END (OK)");
}
tlog.Debug(tag, $"WatchTimeConstructor END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("WatchTime getCPtr.")]
- [Property("SPEC", "Tizen.NUI.WatchTime.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WatchTimegetCPtr()
- {
- tlog.Debug(tag, $"WatchTimegetCPtr START");
-
- using (ImageView view = new ImageView())
- {
- var testingTarget = new WatchTime(view.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<WatchTime>(testingTarget, "Should be an instance of WatchTime type.");
-
- try
- {
- WatchTime.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"WatchTimegetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("WatchTime GetWatchTimeFromPtr.")]
Assert.IsNotNull(testingTarget, "Can't create success object AnimatedVectorImageView");
Assert.IsInstanceOf<AnimatedVectorImageView>(testingTarget, "Should be an instance of AnimatedVectorImageView type.");
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewConstructor END (OK)");
}
Assert.IsNotNull(testingTarget, "Can't create success object AnimatedVectorImageView");
Assert.IsInstanceOf<AnimatedVectorImageView>(testingTarget, "Should be an instance of AnimatedVectorImageView type.");
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewConstructorWithScale END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("AnimatedVectorImageView Dispose.")]
- [Property("SPEC", "Tizen.NUI.AnimatedVectorImageView.Dispose M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AnimatedVectorImageViewDispose()
- {
- tlog.Debug(tag, $"AnimatedVectorImageViewDispose START");
+ //[Test]
+ //[Category("P1")]
+ //[Description("AnimatedVectorImageView Dispose.")]
+ //[Property("SPEC", "Tizen.NUI.AnimatedVectorImageView.Dispose M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void AnimatedVectorImageViewDispose()
+ //{
+ // tlog.Debug(tag, $"AnimatedVectorImageViewDispose START");
- var testingTarget = new MyAnimatedVectorImageView();
- Assert.IsNotNull(testingTarget, "Can't create success object AnimatedVectorImageView");
- Assert.IsInstanceOf<AnimatedVectorImageView>(testingTarget, "Should be an instance of AnimatedVectorImageView type.");
+ // var testingTarget = new MyAnimatedVectorImageView();
+ // Assert.IsNotNull(testingTarget, "Can't create success object AnimatedVectorImageView");
+ // Assert.IsInstanceOf<AnimatedVectorImageView>(testingTarget, "Should be an instance of AnimatedVectorImageView type.");
- try
- {
- testingTarget.OnDispose(DisposeTypes.Explicit);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
+ // try
+ // {
+ // testingTarget.OnDispose(DisposeTypes.Explicit);
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
- tlog.Debug(tag, $"AnimatedVectorImageViewDispose END (OK)");
- }
+ // tlog.Debug(tag, $"AnimatedVectorImageViewDispose END (OK)");
+ //}
[Test]
[Category("P1")]
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewResourceUrl END (OK)");
}
testingTarget.RepeatCount = 2;
Assert.AreEqual(2, testingTarget.RepeatCount, "Should be equal");
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewRepeatCount END (OK)");
}
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewTotalFrame END (OK)");
}
catch (InvalidOperationException e)
{
tlog.Debug(tag, e.Message.ToString());
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewCurrentFrameNotSetResourceUrl END (OK)");
Assert.Pass("Caught InvalidOperationException: Passed!");
}
testingTarget.RepeatMode = AnimatedVectorImageView.RepeatModes.Restart;
Assert.AreEqual(AnimatedVectorImageView.RepeatModes.Restart, testingTarget.RepeatMode, "Should be equal!");
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewRepeatMode END (OK)");
}
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewAnimationState END (OK)");
}
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewSetMinAndMaxFrame END (OK)");
}
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewSetMinMaxFrame END (OK)");
}
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewSetMinMaxFrameByMarker END (OK)");
}
catch (InvalidOperationException e)
{
tlog.Debug(tag, e.Message.ToString());
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewPlay END (OK)");
Assert.Pass("Caught InvalidOperationException: Passed!");
}
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewStopAsCancel END (OK)");
}
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewStopAsDiscard END (OK)");
}
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"AnimatedVectorImageViewStopAsStopFinal END (OK)");
}
}
tlog.Debug(tag, e.Message.ToString());
Assert.Fail("Caught Exception: Failed!");
}
-
- testingTarget.Dispose();
}
tlog.Debug(tag, $"LottieAnimationViewURL END (OK)");
testingTarget.RedrawInScalingDown = true;
Assert.IsTrue(testingTarget.RedrawInScalingDown);
-
- testingTarget.Dispose();
}
tlog.Debug(tag, $"LottieAnimationViewRedrawInScalingDown END (OK)");
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"LottieAnimationViewSetMinMaxFrameByMarker END (OK)");
}
Assert.Fail("Caught Exception: Failed!");
}
- testingTarget.Dispose();
tlog.Debug(tag, $"LottieAnimationViewGetMinMaxFrame END (OK)");
}
NUIApplication.GetDefaultWindow().GetDefaultLayer().Remove(testingTarget);
- testingTarget.Dispose();
tlog.Debug(tag, $"LottieAnimationViewFinished END (OK)");
}
NUIApplication.GetDefaultWindow().GetDefaultLayer().Remove(testingTarget);
- testingTarget.Dispose();
tlog.Debug(tag, $"LottieAnimationViewVisualEvent END (OK)");
}
using (Color color = Color.Cyan)
{
- global::System.IntPtr cPtr = (global::System.IntPtr)Color.getCPtr(color);
-
- var testingTarget = Color.GetColorFromPtr(cPtr);
+ var testingTarget = Color.GetColorFromPtr(color.SwigCPtr.Handle);
Assert.IsNotNull(testingTarget, "null handle");
Assert.IsInstanceOf<Color>(testingTarget, "Should return Color instance.");
tlog.Debug(tag, $"FrameUpdateCallbackInterfaceConstructor END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("FrameUpdateCallbackInterface getCPtr.")]
- [Property("SPEC", "Tizen.NUI.FrameUpdateCallbackInterface.getCPtr C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void FrameUpdateCallbackInterfaceGetCPtr()
- {
- tlog.Debug(tag, $"FrameUpdateCallbackInterfaceGetCPtr START");
-
- var testingTarget = new FrameUpdateCallbackInterface();
- Assert.IsNotNull(testingTarget, "Can't create success object FrameUpdateCallbackInterface");
- Assert.IsInstanceOf<FrameUpdateCallbackInterface>(testingTarget, "Should return FrameUpdateCallbackInterface instance.");
-
- tlog.Debug(tag, "getCPtr : " + FrameUpdateCallbackInterface.getCPtr(testingTarget));
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"FrameUpdateCallbackInterfaceGetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("FrameUpdateCallbackInterface OnUpdate.")]
buffer.Dispose();
tlog.Debug(tag, $"PropertyBufferGetSize END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("PropertyBuffer SetData")]
- [Property("SPEC", "Tizen.NUI.PropertyBuffer.SetData M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void PropertyBufferSetData()
- {
- tlog.Debug(tag, $"PropertyBufferSetData START");
-
- PropertyMap buffer = new PropertyMap();
- Assert.IsNotNull(buffer, "should be not null");
- Assert.IsInstanceOf<PropertyMap>(buffer, "should be an instance of PropertyMap class!");
- buffer.Add("aIndex", new PropertyValue((int)PropertyType.Float));
- buffer.Add("aValue", new PropertyValue((int)PropertyType.Float));
-
- var testingTarget = new PropertyBuffer(buffer);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<PropertyBuffer>(testingTarget, "Should be an instance of PropertyBuffer class!");
- try
- {
- global::System.IntPtr data = new global::System.IntPtr();
- testingTarget.SetData(data, 0);
- }
- catch (Exception e)
- {
- LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
- Assert.Fail("Caught Exception" + e.ToString());
- }
- Assert.AreEqual(0, testingTarget.GetSize(), "Should be Equal.");
-
- testingTarget.Dispose();
- buffer.Dispose();
- tlog.Debug(tag, $"PropertyBufferSetData END (OK)");
- }
}
}
tlog.Debug(tag, $"GestureDetectorDownCast END (OK)");
Assert.Pass("GestureDetectorDownCast");
}
-
- [Test]
- [Category("P1")]
- [Description("GestureDetector getCPtr")]
- [Property("SPEC", "Tizen.NUI.GestureDetector.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void GestureDetectorgetCPtr()
- {
- tlog.Debug(tag, $"GestureDetectorgetCPtr START");
-
- var testingTarget = new GestureDetector();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<GestureDetector>(testingTarget, "should be an instance of testing target class!");
-
- try
- {
- GestureDetector.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"GestureDetectorgetCPtr END (OK)");
- Assert.Pass("GestureDetectorgetCPtr");
- }
}
}
Assert.Pass("HoverGetPointCount");
}
- [Test]
- [Category("P1")]
- [Description("Test GetCPtr.")]
- [Property("SPEC", "Tizen.NUI.Hover.GetCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void HoverGetCPtr()
- {
- tlog.Debug(tag, $"HoverGetCPtr START");
-
- using (Hover hover = new Hover())
- {
- try
- {
- Hover.getCPtr(hover);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
- }
-
- tlog.Debug(tag, $"HoverGetCPtr END (OK)");
- Assert.Pass("HoverGetCPtr");
- }
-
[Test]
[Category("P1")]
[Description("Test GetHoverFromPtr.")]
using (Hover hover = new Hover(300))
{
- var testingTarget = Hover.GetHoverFromPtr(Hover.getCPtr(hover).Handle);
+ var testingTarget = Hover.GetHoverFromPtr(hover.SwigCPtr.Handle);
Assert.IsNotNull(testingTarget, "Can't create success object Hover");
Assert.IsInstanceOf<Hover>(testingTarget, "Should be an instance of Hover type.");
Assert.Pass("LongPressGestureLocalPoint");
}
- [Test]
- [Category("P1")]
- [Description("Test getCPtr property.")]
- [Property("SPEC", "Tizen.NUI.LongPressGesture.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void LongPressGesturegetCPtr()
- {
- tlog.Debug(tag, $"LongPressGesturegetCPtr START");
-
- var testingTarget = new LongPressGesture(Gesture.StateType.Finished);
- Assert.IsNotNull(testingTarget, "Can't create success object Hover");
- Assert.IsInstanceOf<LongPressGesture>(testingTarget, "Should be an instance of Hover type.");
-
- try
- {
- LongPressGesture.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"LongPressGesturegetCPtr END (OK)");
- Assert.Pass("LongPressGestureLocalPoint");
- }
-
[Test]
[Category("P1")]
[Description("Test GetLongPressGestureFromPtr property.")]
using (LongPressGesture gestrue = new LongPressGesture(Gesture.StateType.Finished))
{
- var testingTarget = LongPressGesture.GetLongPressGestureFromPtr(LongPressGesture.getCPtr(gestrue).Handle);
+ var testingTarget = LongPressGesture.GetLongPressGestureFromPtr(gestrue.SwigCPtr.Handle);
Assert.IsNotNull(testingTarget, "Can't create success object Hover");
Assert.IsInstanceOf<LongPressGesture>(testingTarget, "Should be an instance of Hover type.");
Assert.Pass("LongPressGestureGetLongPressGestureFromPtr");
}
}
-
}
using (LongPressGestureDetector detector= new LongPressGestureDetector(3))
{
- var testingTarget = LongPressGestureDetector.GetLongPressGestureDetectorFromPtr(LongPressGestureDetector.getCPtr(detector).Handle);
+ var testingTarget = LongPressGestureDetector.GetLongPressGestureDetectorFromPtr(detector.SwigCPtr.Handle);
Assert.IsNotNull(testingTarget, "Can't create success object Hover");
Assert.IsInstanceOf<LongPressGestureDetector>(testingTarget, "Should be an instance of LongPressGestureDetector type.");
Assert.Pass("LongPressGestureDetectorDetectedSignal");
}
- [Test]
- [Category("P1")]
- [Description("LongPressGestureDetector getCPtr")]
- [Property("SPEC", "Tizen.NUI.LongPressGestureDetector.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void LongPressGestureDetectorgetCPtr()
- {
- tlog.Debug(tag, $"LongPressGestureDetectorgetCPtr START");
-
- using (LongPressGestureDetector detector = new LongPressGestureDetector())
- {
- var testingTarget = LongPressGestureDetector.DownCast(detector);
- Assert.IsInstanceOf<LongPressGestureDetector>(testingTarget, "Should be an instance of LongPressGestureDetector type.");
-
- try
- {
- LongPressGestureDetector.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- }
-
- tlog.Debug(tag, $"LongPressGestureDetectorgetCPtr END (OK)");
- Assert.Pass("LongPressGestureDetectorgetCPtr");
- }
-
[Test]
[Category("P1")]
[Description("Test Detected property.")]
Assert.Pass("PanGestureGetScreenDistance");
}
- [Test]
- [Category("P1")]
- [Description("Test getCPtr property.")]
- [Property("SPEC", "Tizen.NUI.PanGesture.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void PanGesturegetCPtr()
- {
- tlog.Debug(tag, $"PanGesturegetCPtr START");
-
- using (PanGesture gesture = new PanGesture())
- {
- try
- {
- PanGesture.getCPtr(gesture);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
- }
-
- tlog.Debug(tag, $"PanGesturegetCPtr END (OK)");
- Assert.Pass("PanGestureCPtr");
- }
-
[Test]
[Category("P1")]
[Description("Test GetPanGestureFromPtr property.")]
using (PanGesture gesture = new PanGesture())
{
- var testingTarget = PanGesture.GetPanGestureFromPtr(PanGesture.getCPtr(gesture).Handle);
+ var testingTarget = PanGesture.GetPanGestureFromPtr(gesture.SwigCPtr.Handle);
Assert.IsNotNull(testingTarget, "Can't create success object Hover");
Assert.IsInstanceOf<PanGesture>(testingTarget, "Should be an instance of PanGesture type.");
tlog.Debug(tag, $"PanGestureDetectorGetPanGestureDetectorFromPtr START");
PanGestureDetector a1 = new PanGestureDetector();
- PanGestureDetector.GetPanGestureDetectorFromPtr(PanGestureDetector.getCPtr(a1).Handle);
+ PanGestureDetector.GetPanGestureDetectorFromPtr(a1.SwigCPtr.Handle);
a1.Dispose();
tlog.Debug(tag, $"PanGestureDetectorGetPanGestureDetectorFromPtr END (OK)");
tlog.Debug(tag, $"PinchGestureLocalCenterPoint END (OK)");
Assert.Pass("LocalCenterPoint");
}
-
- [Test]
- [Category("P1")]
- [Description("PinchGesture getCPtr")]
- [Property("SPEC", "Tizen.NUI.PinchGesture.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void PinchGesturegetCPtr()
- {
- tlog.Debug(tag, $"PinchGesturegetCPtr START");
- Gesture.StateType state = Gesture.StateType.Finished;
- PinchGesture a1 = new PinchGesture(state);
- global::System.Runtime.InteropServices.HandleRef r1 = PinchGesture.getCPtr(a1);
-
- tlog.Debug(tag, $"PinchGesturegetCPtr END (OK)");
- Assert.Pass("PinchGesturegetCPtr");
- }
-
[Test]
[Category("P1")]
[Description("PinchGesture GetPinchGestureFromPtr")]
Gesture.StateType state = Gesture.StateType.Finished;
PinchGesture a2 = new PinchGesture(state);
- PinchGesture a1 = PinchGesture.GetPinchGestureFromPtr(PinchGesture.getCPtr(a2).Handle);
+ PinchGesture a1 = PinchGesture.GetPinchGestureFromPtr(a2.SwigCPtr.Handle);
a2.Dispose();
tlog.Debug(tag, $"PinchGestureGetPinchGestureFromPtr END (OK)");
Assert.Pass("PinchGestureGetPinchGestureFromPtr");
}
}
-
}
tlog.Debug(tag, $"PinchGestureDetectorGetPinchGestureDetectorFromPtr START");
PinchGestureDetector a1 = new PinchGestureDetector();
- PinchGestureDetector a2 = PinchGestureDetector.GetPinchGestureDetectorFromPtr(PinchGestureDetector.getCPtr(a1).Handle);
+ PinchGestureDetector a2 = PinchGestureDetector.GetPinchGestureDetectorFromPtr(a1.SwigCPtr.Handle);
a1.Dispose();
tlog.Debug(tag, $"PinchGestureDetectorDownCast END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("PinchGestureDetector getCPtr")]
- [Property("SPEC", "Tizen.NUI.PinchGestureDetector.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void PinchGestureDetectorgetCPtr()
- {
- tlog.Debug(tag, $"PinchGestureDetectorgetCPtr START");
- PinchGestureDetector a1 = new PinchGestureDetector();
-
- global::System.Runtime.InteropServices.HandleRef b1 = PinchGestureDetector.getCPtr(a1);
-
- a1.Dispose();
-
- tlog.Debug(tag, $"PinchGestureDetectorgetCPtr END (OK)");
- Assert.Pass("PinchGestureDetectorgetCPtr");
- }
-
[Test]
[Category("P1")]
[Description("PinchGestureDetector Assign")]
Assert.Pass("RotationGestureLocalCenterPoint");
}
- [Test]
- [Category("P1")]
- [Description("RotationGesture getCPtr")]
- [Property("SPEC", "Tizen.NUI.RotationGesture.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void RotationGesturegetCPtr()
- {
- tlog.Debug(tag, $"RotationGesturegetCPtr START");
- Gesture.StateType state = Gesture.StateType.Finished;
- RotationGesture a1 = new RotationGesture(state);
- global::System.Runtime.InteropServices.HandleRef r1 = RotationGesture.getCPtr(a1);
-
- tlog.Debug(tag, $"RotationGesturegetCPtr END (OK)");
- Assert.Pass("RotationGesturegetCPtr");
- }
-
[Test]
[Category("P1")]
[Description("RotationGesture GetRotationGestureFromPtr")]
tlog.Debug(tag, $"RotationGestureGetRotationGestureFromPtr START");
Gesture.StateType state = Gesture.StateType.Finished;
RotationGesture a2 = new RotationGesture(state);
- RotationGesture a1 = RotationGesture.GetRotationGestureFromPtr(RotationGesture.getCPtr(a2).Handle);
+ RotationGesture a1 = RotationGesture.GetRotationGestureFromPtr(a2.SwigCPtr.Handle);
a2.Dispose();
tlog.Debug(tag, $"RotationGestureGetRotationGestureFromPtr END (OK)");
tlog.Debug(tag, $"RotationGestureDetectorGetRotationGestureDetectorFromPtr START");
RotationGestureDetector a1 = new RotationGestureDetector();
- RotationGestureDetector a2 = RotationGestureDetector.GetRotationGestureDetectorFromPtr(RotationGestureDetector.getCPtr(a1).Handle);
+ RotationGestureDetector a2 = RotationGestureDetector.GetRotationGestureDetectorFromPtr(a1.SwigCPtr.Handle);
a1.Dispose();
tlog.Debug(tag, $"RotationGestureDetectorGetRotationGestureDetectorFromPtr END (OK)");
tlog.Debug(tag, $"RotationGestureDetectorDownCast END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("RotationGestureDetector getCPtr")]
- [Property("SPEC", "Tizen.NUI.RotationGestureDetector.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void RotationGestureDetectorgetCPtr()
- {
- tlog.Debug(tag, $"RotationGestureDetectorgetCPtr START");
- RotationGestureDetector a1 = new RotationGestureDetector();
- global::System.Runtime.InteropServices.HandleRef b1 = RotationGestureDetector.getCPtr(a1);
-
- a1.Dispose();
-
- tlog.Debug(tag, $"RotationGestureDetectorgetCPtr END (OK)");
- Assert.Pass("RotationGestureDetectorgetCPtr");
- }
-
[Test]
[Category("P1")]
[Description("RotationGestureDetector Assign")]
Assert.Pass("TapGestureLocalPoint");
}
- [Test]
- [Category("P1")]
- [Description("Test getCPtr property.")]
- [Property("SPEC", "Tizen.NUI.TapGesture.getCPtr A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TapGesturegetCPtr()
- {
- tlog.Debug(tag, $"TapGesturegetCPtr START");
- TapGesture a1 = new TapGesture();
-
- global::System.Runtime.InteropServices.HandleRef p1 = TapGesture.getCPtr(a1);
-
- tlog.Debug(tag, $"TapGesturegetCPtr END (OK)");
- Assert.Pass("TapGesturegetCPtr");
- }
-
[Test]
[Category("P1")]
[Description("Test GetTapGestureFromPtr property.")]
tlog.Debug(tag, $"TapGestureGetTapGestureFromPtr START");
TapGesture a1 = new TapGesture();
- TapGesture a2 = TapGesture.GetTapGestureFromPtr(TapGesture.getCPtr(a1).Handle);
+ TapGesture a2 = TapGesture.GetTapGestureFromPtr(a1.SwigCPtr.Handle);
a1.Dispose();
Assert.Pass("TapGestureDetectorDownCast");
}
- [Test]
- [Category("P1")]
- [Description("TapGestureDetector getCPtr")]
- [Property("SPEC", "Tizen.NUI.TapGestureDetector.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TapGestureDetectorgetCPtr()
- {
- tlog.Debug(tag, $"TapGestureDetectorgetCPtr START");
- TapGestureDetector a1 = new TapGestureDetector();
- global::System.Runtime.InteropServices.HandleRef p1 = TapGestureDetector.getCPtr(a1);
-
- tlog.Debug(tag, $"TapGestureDetectorgetCPtr END (OK)");
- Assert.Pass("TapGestureDetectorgetCPtr");
- }
-
[Test]
[Category("P1")]
[Description("TapGestureDetector GetTapGestureDetectorFromPtr")]
tlog.Debug(tag, $"TapGestureDetectorGetTapGestureDetectorFromPtr START");
TapGestureDetector a1 = new TapGestureDetector();
- TapGestureDetector a2 = TapGestureDetector.GetTapGestureDetectorFromPtr(TapGestureDetector.getCPtr(a1).Handle);
+ TapGestureDetector a2 = TapGestureDetector.GetTapGestureDetectorFromPtr(a1.SwigCPtr.Handle);
a1.Dispose();
}
}
- [Test]
- [Category("P1")]
- [Description("Touch getCPtr")]
- [Property("SPEC", "Tizen.NUI.Touch.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void TouchgetCPtr()
- {
- tlog.Debug(tag, $"TouchgetCPtr START");
-
- var testingTarget = new Touch();
- Assert.IsNotNull(testingTarget, "Can't create success object Touch");
- Assert.IsInstanceOf<Touch>(testingTarget, "Should be an instance of Touch type.");
-
- try
- {
- Touch.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"TouchgetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("Touch GetTouchFromPtr")]
Assert.Pass("WheelIsAltModifier");
}
- [Test]
- [Category("P1")]
- [Description("Wheel getCPtr")]
- [Property("SPEC", "Tizen.NUI.Wheel.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WheelgetCPtr()
- {
- tlog.Debug(tag, $"WheelgetCPtr START");
- Wheel a1 = new Wheel();
- global::System.Runtime.InteropServices.HandleRef b1 = Wheel.getCPtr(a1);
-
- tlog.Debug(tag, $"WheelgetCPtr END (OK)");
- Assert.Pass("WheelgetCPtr");
- }
-
[Test]
[Category("P1")]
[Description("Wheel GetWheelFromPtr")]
tlog.Debug(tag, $"WheelGetWheelFromPtr START");
Wheel a1 = new Wheel();
- Wheel a2 = Wheel.GetWheelFromPtr(Wheel.getCPtr(a1).Handle);
+ Wheel a2 = Wheel.GetWheelFromPtr(a1.SwigCPtr.Handle);
a1.Dispose();
using (PixelBuffer pixelBuffer = new PixelBuffer(10, 5, PixelFormat.BGR8888))
{
- var testingTarget = new PixelBuffer(PixelBuffer.getCPtr(pixelBuffer).Handle, false);
+ var testingTarget = new PixelBuffer(pixelBuffer.SwigCPtr.Handle, false);
Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer");
Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelBuffer type.");
using (PixelData pixelData = new PixelData(buffer, 10, 1, 2, PixelFormat.L8, PixelData.ReleaseFunction.Free))
{
- var testingTarget = new PixelData(PixelData.getCPtr(pixelData).Handle, true);
+ var testingTarget = new PixelData(pixelData.SwigCPtr.Handle, true);
Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
Assert.Pass("InputMethodContextShowInputPanel");
}
- [Test]
- [Category("P1")]
- [Description("InputMethodContext getCPtr")]
- [Property("SPEC", "Tizen.NUI.InputMethodContext.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void InputMethodContextgetCPtr()
- {
- tlog.Debug(tag, $"InputMethodContextgetCPtr START");
- InputMethodContext a1 = new InputMethodContext();
-
- global::System.Runtime.InteropServices.HandleRef p1 = InputMethodContext.getCPtr(a1);
- tlog.Debug(tag, $"InputMethodContextgetCPtr END (OK)");
- Assert.Pass("InputMethodContextgetCPtr");
- }
-
[Test]
[Category("P1")]
[Description("InputMethodContext Assign")]
tlog.Debug(tag, $"KeyGetKeyFromPtr START");
Key a1 = new Key();
- Key b1 = Key.GetKeyFromPtr(Key.getCPtr(a1).Handle);
+ Key b1 = Key.GetKeyFromPtr(a1.SwigCPtr.Handle);
b1.Dispose();
a1.Dispose();
var testingTarget = new VertexBuffer(vertexFormat);
Assert.IsNotNull(testingTarget, "Return a null object of VertexBuffer");
Assert.IsInstanceOf<VertexBuffer>(testingTarget, "Should be an instance of VertexBuffer type.");
-
- tlog.Debug(tag, "getCPtr : " + VertexBuffer.getCPtr(testingTarget));
-
+
testingTarget.Dispose();
}
tlog.Debug(tag, $"ThemeManagerplatformThemeEnabled END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("Test ThemeManager ApplyTheme.")]
- [Property("SPEC", "Tizen.NUI.ThemeManager.ApplyTheme M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- public void ThemeManagerApplyTheme()
- {
- tlog.Debug(tag, $"ThemeManagerApplyTheme START");
-
- var testingTarget = new Theme(path);
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<Theme>(testingTarget, "should be an instance of testing target class!");
-
- try
- {
- ThemeManager.ApplyTheme(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ThemeManagerApplyTheme END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("Test ThemeManager ApplyTheme.")]
- [Property("SPEC", "Tizen.NUI.ThemeManager.ApplyTheme M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- public void ThemeManagerApplyThemeNullThemeId()
- {
- tlog.Debug(tag, $"ThemeManagerApplyThemeNullThemeId START");
-
- var testingTarget = new Theme();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<Theme>(testingTarget, "should be an instance of testing target class!");
-
- try
- {
- ThemeManager.ApplyTheme(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"ThemeManagerApplyThemeNullThemeId END (OK)");
- }
+ //[Test]
+ //[Category("P1")]
+ //[Description("Test ThemeManager ApplyTheme.")]
+ //[Property("SPEC", "Tizen.NUI.ThemeManager.ApplyTheme M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("COVPARAM", "")]
+ //public void ThemeManagerApplyTheme()
+ //{
+ // tlog.Debug(tag, $"ThemeManagerApplyTheme START");
+
+ // var testingTarget = new Theme(path);
+ // Assert.IsNotNull(testingTarget, "should be not null");
+ // Assert.IsInstanceOf<Theme>(testingTarget, "should be an instance of testing target class!");
+
+ // try
+ // {
+ // ThemeManager.ApplyTheme(testingTarget);
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception : Failed!");
+ // }
+
+ // tlog.Debug(tag, $"ThemeManagerApplyTheme END (OK)");
+ //}
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("Test ThemeManager ApplyTheme.")]
+ //[Property("SPEC", "Tizen.NUI.ThemeManager.ApplyTheme M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("COVPARAM", "")]
+ //public void ThemeManagerApplyThemeNullThemeId()
+ //{
+ // tlog.Debug(tag, $"ThemeManagerApplyThemeNullThemeId START");
+
+ // var testingTarget = new Theme();
+ // Assert.IsNotNull(testingTarget, "should be not null");
+ // Assert.IsInstanceOf<Theme>(testingTarget, "should be an instance of testing target class!");
+
+ // try
+ // {
+ // ThemeManager.ApplyTheme(testingTarget);
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception : Failed!");
+ // }
+
+ // tlog.Debug(tag, $"ThemeManagerApplyThemeNullThemeId END (OK)");
+ //}
[Test]
[Category("P1")]
Assert.IsNotNull(testingTarget, "Can't create success object Transition");
Assert.IsInstanceOf<Transition>(testingTarget, "Should be an instance of Transition type.");
- testingTarget.Dispose();
-
tlog.Debug(tag, $"TransitionConstructor END (OK)");
}
Assert.IsNotNull(testingTarget, "Can't create success object TransitionBase");
Assert.IsInstanceOf<TransitionBase>(testingTarget, "Should be an instance of TransitionBase type.");
- testingTarget.Dispose();
-
tlog.Debug(tag, $"TransitionBaseConstructor END (OK)");
}
{
tlog.Debug(tag, $"TransitionBaseAlphaFunction START");
- var testingTarget = new TransitionBase();
+ var testingTarget = new TransitionBase()
+ {
+ TimePeriod = new TimePeriod(300),
+ AlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Bounce),
+ };
Assert.IsNotNull(testingTarget, "Can't create success object TransitionBase");
Assert.IsInstanceOf<TransitionBase>(testingTarget, "Should be an instance of TransitionBase type.");
- Assert.IsNotNull(testingTarget.AlphaFunction);
-
- testingTarget.AlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Bounce);
+ testingTarget.AlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseIn);
Assert.IsInstanceOf<AlphaFunction>(testingTarget.AlphaFunction, "Should be an instance of TimePeriod type.");
testingTarget.Dispose();
{
tlog.Debug(tag, $"TransitionBaseTimePeriod START");
- var testingTarget = new TransitionBase();
+ var testingTarget = new TransitionBase()
+ {
+ TimePeriod = new TimePeriod(300),
+ AlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Bounce),
+ };
Assert.IsNotNull(testingTarget, "Can't create success object TransitionBase");
Assert.IsInstanceOf<TransitionBase>(testingTarget, "Should be an instance of TransitionBase type.");
- Assert.IsNotNull(testingTarget.TimePeriod);
-
- testingTarget.TimePeriod = new TimePeriod(300);
+ testingTarget.TimePeriod = new TimePeriod(500);
Assert.IsInstanceOf<TimePeriod>(testingTarget.TimePeriod, "Should be an instance of TimePeriod type.");
testingTarget.Dispose();
Assert.IsInstanceOf<TransitionItemBase>(result, "Should be an instance of TransitionItemBase type.");
}
- testingTarget.Dispose();
+ testingTarget.Dispose();
tlog.Debug(tag, $"TransitionBaseCreateTransition END (OK)");
}
}
using (FontClient.GlyphBufferData data = new FontClient.GlyphBufferData())
{
- var testingTarget = new FontClient.GlyphBufferData(FontClient.GlyphBufferData.getCPtr(data).Handle, true);
+ var testingTarget = new FontClient.GlyphBufferData(data.SwigCPtr.Handle, true);
Assert.IsNotNull(testingTarget, "Return a null object of GlyphBufferData");
Assert.IsInstanceOf<FontClient.GlyphBufferData>(testingTarget, "Should be an instance of GlyphBufferData type.");
tlog.Info(tag, "Destroy() is called!");
}
+ internal class MyGraphicsTypeConverter : GraphicsTypeConverter
+ {
+ public MyGraphicsTypeConverter() : base()
+ { }
+
+ public override float ConvertScriptToPixel(string scriptValue)
+ {
+ return base.ConvertScriptToPixel(scriptValue);
+ }
+
+ public override float ConvertFromPixel(float scriptValue)
+ {
+ return base.ConvertFromPixel(scriptValue);
+ }
+ }
+
[Test]
[Category("P1")]
[Description("GraphicsTypeConverter ConvertScriptToPixel.")]
{
tlog.Debug(tag, $"GraphicsTypeConverterConvertScriptToPixel START");
- var testingTarget = new GraphicsTypeConverter();
+ var testingTarget = new MyGraphicsTypeConverter();
Assert.IsNotNull(testingTarget, "Can't create success object GraphicsTypeConverter");
Assert.IsInstanceOf<GraphicsTypeConverter>(testingTarget, "Should be an instance of GraphicsTypeConverter type.");
var result = testingTarget.ConvertScriptToPixel("160dp");
- Assert.IsNotNull(result);
+ tlog.Debug(tag, "ConvertScriptToPixel : " + result);
result = testingTarget.ConvertScriptToPixel("160px");
- Assert.AreEqual(160.0f, result, "Should be equal!");
+ tlog.Debug(tag, "ConvertScriptToPixel : " + result);
result = testingTarget.ConvertScriptToPixel("160.0f");
- Assert.AreEqual(0.0f, result, "Should be equal!");
+ tlog.Debug(tag, "ConvertScriptToPixel : " + result);
tlog.Debug(tag, $"GraphicsTypeConverterConvertScriptToPixel END (OK)");
}
{
tlog.Debug(tag, $"GraphicsTypeConverterConvertFromPixel START");
- var testingTarget = new GraphicsTypeConverter();
+ var testingTarget = new MyGraphicsTypeConverter();
Assert.IsNotNull(testingTarget, "Can't create success object GraphicsTypeConverter");
Assert.IsInstanceOf<GraphicsTypeConverter>(testingTarget, "Should be an instance of GraphicsTypeConverter type.");
tlog.Info(tag, "Destroy() is called!");
}
- [Test]
- [Category("P1")]
- [Description("GraphicsTypeManager SetTypeConverter.")]
- [Property("SPEC", "Tizen.NUI.GraphicsTypeManager.SetTypeConverter M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void GraphicsTypeManagerSetTypeConverter()
- {
- tlog.Debug(tag, $"GraphicsTypeManagerSetTypeConverter START");
-
- try
- {
- GraphicsTypeManager.Instance.SetTypeConverter(new GraphicsTypeConverter());
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- tlog.Debug(tag, $"GraphicsTypeManagerSetTypeConverter END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("GraphicsTypeManager ConvertScriptToPixel.")]
catch (Exception e)
{
tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
+ tlog.Debug(tag, $"TimerSetIntervalWithDisposedInstance END (OK)");
+ Assert.Pass("Caught Exception: Passed!");
}
-
- tlog.Debug(tag, $"TimerSetIntervalWithDisposedInstance END (OK)");
}
[Test]
}
catch (Exception e)
{
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
+ tlog.Debug(tag, e.Message.ToString());
+ tlog.Debug(tag, $"TimerGetIntervalWithDisposedInstance END (OK)");
+ Assert.Pass("Caught Exception: Passed!");
}
-
- tlog.Debug(tag, $"TimerGetIntervalWithDisposedInstance END (OK)");
}
[Test]
catch (Exception e)
{
tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
+ tlog.Debug(tag, $"TimerStartWithDisposedInstance END (OK)");
+ Assert.Pass("Caught Exception: Passed!");
}
-
- tlog.Debug(tag, $"TimerStartWithDisposedInstance END (OK)");
}
[Test]
catch (Exception e)
{
tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
+ tlog.Debug(tag, $"TimerStopWithDisposedInstance END (OK)");
+ Assert.Pass("Caught Exception: Passed!");
}
-
- tlog.Debug(tag, $"TimerStopWithDisposedInstance END (OK)");
}
[Test]
catch (Exception e)
{
tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
+ tlog.Debug(tag, $"TimerIsRunningWithDisposedInstance END (OK)");
+ Assert.Pass("Caught Exception: Passed!");
}
-
- tlog.Debug(tag, $"TimerIsRunningWithDisposedInstance END (OK)");
}
[Test]
tlog.Debug(tag, $"WebPageLoadErrorConstructor END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("WebPageLoadError ReleaseSwigCPtr.")]
- [Property("SPEC", "Tizen.NUI.WebPageLoadError.ReleaseSwigCPtr C")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTR")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WebPageLoadErrorReleaseSwigCPtr()
- {
- tlog.Debug(tag, $"WebPageLoadErrorReleaseSwigCPtr START");
-
- using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
- {
- var testingTarget = new MyWebPageLoadError(webview.SwigCPtr.Handle, false);
- Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<WebPageLoadError>(testingTarget, "Should return WebPageLoadError instance.");
-
- try
- {
- testingTarget.OnReleaseSwigCPtr(testingTarget.SwigCPtr);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
- }
-
- tlog.Debug(tag, $"WebPageLoadErrorReleaseSwigCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("WebPageLoadError Url.")]
tlog.Debug(tag, $"WidgetSetContentInfo END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("Widget getCPtr.")]
- [Property("SPEC", "Tizen.NUI.Widget.getCPtr M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WidgetGetCPtr()
- {
- tlog.Debug(tag, $"WidgetGetCPtr START");
-
- var testingTarget = new Widget(widget.GetIntPtr(), true);
- Assert.IsNotNull(testingTarget, "Can't create success object Widget");
- Assert.IsInstanceOf<Widget>(testingTarget, "Should be an instance of Widget type.");
-
- var result = Widget.getCPtr(testingTarget);
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"WidgetGetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("Widget Assign.")]
tlog.Debug(tag, $"WidgetViewManagerRemoveWidget END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("WidgetViewManager getCPtr.")]
- [Property("SPEC", "Tizen.NUI.WidgetViewManager.getCPtr A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void WidgetViewManagergetCPtr()
- {
- tlog.Debug(tag, $"WidgetViewManagergetCPtr START");
-
- var testingTarget = new WidgetViewManager(widget.GetIntPtr(), false);
- Assert.IsNotNull(testingTarget, "Can't create success object WidgetViewManager");
- Assert.IsInstanceOf<WidgetViewManager>(testingTarget, "Should be an instance of WidgetViewManager type.");
-
- try
- {
-
- WidgetViewManager.getCPtr(testingTarget);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
- tlog.Debug(tag, $"WidgetViewManagergetCPtr END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("WidgetViewManager DownCast.")]
tlog.Debug(tag, $"GetApplicationLevelResourceTest START");
var sr = new StaticResourceExtension();
- Assert.Throws<ArgumentNullException>(() => sr.GetApplicationLevelResource("key", null));
+ Assert.Throws<Tizen.NUI.Xaml.XamlParseException>(() => sr.GetApplicationLevelResource("key", null));
tlog.Debug(tag, $"GetApplicationLevelResourceTest END");
}