public void NUIWidgetApplicationAddWidgetTypeWithDictionary() { tlog.Debug(tag, $"NUIWidgetApplicationAddWidgetTypeWithDictionary START"); var testingTarget = new NUIWidgetApplication(typeof(MyWidget)); Assert.IsNotNull(testingTarget, "should be not null."); Assert.IsInstanceOf <NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type."); try { Dictionary <global::System.Type, string> widgetTypes = new Dictionary <Type, string>(); widgetTypes.Add(typeof(MyWidget), "MyWidget"); testingTarget.AddWidgetType(widgetTypes); } catch (Exception e) { tlog.Error(tag, "Caught Exception" + e.ToString()); LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); Assert.Fail("Caught Exception" + e.ToString()); } testingTarget.Dispose(); tlog.Debug(tag, $"NUIWidgetApplicationAddWidgetTypeWithDictionary END (OK)"); }
public void NUIWidgetApplicationConstructorWithStylesheet() { tlog.Debug(tag, $"NUIWidgetApplicationConstructorWithStylesheet START"); var testingTarget = new NUIWidgetApplication(typeof(MyWidget), "stylesheet"); Assert.IsNotNull(testingTarget, "should be not null."); Assert.IsInstanceOf <NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type."); testingTarget.Dispose(); tlog.Debug(tag, $"NUIWidgetApplicationConstructorWithStylesheet END (OK)"); }
public void NUIWidgetApplicationConstructorWithMultiClass() { tlog.Debug(tag, $"NUIWidgetApplicationConstructorWithMultiClass START"); Dictionary <Type, string> widgetSet = new Dictionary <Type, string>(); widgetSet.Add(typeof(MyWidget), "Tizen.NUI.Tests"); var testingTarget = new NUIWidgetApplication(widgetSet); Assert.IsNotNull(testingTarget, "should be not null."); Assert.IsInstanceOf <NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type."); testingTarget.Dispose(); tlog.Debug(tag, $"NUIWidgetApplicationConstructorWithMultiClass END (OK)"); }
public void NUIWidgetApplicationDispose() { tlog.Debug(tag, $"NUIWidgetApplicationDispose START"); try { var testingTarget = new NUIWidgetApplication(typeof(MyWidget)); Assert.IsNotNull(testingTarget, "should be not null."); Assert.IsInstanceOf <NUIWidgetApplication>(testingTarget, "Should be an instance of NUIWidgetApplication type."); testingTarget.Dispose(); } catch (Exception e) { tlog.Error(tag, "Caught Exception" + e.ToString()); LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); Assert.Fail("Caught Exception" + e.ToString()); } tlog.Debug(tag, $"NUIWidgetApplicationDispose END (OK)"); }