public void WatchApplicationAmbientChangedEventArgsChangedGet() { tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsChangedGet START"); if (IsWearable()) { AmbientChangedEventArgs testingTarget = new AmbientChangedEventArgs(); var result = testingTarget.Changed; Assert.IsNotNull(result, "should be not null"); tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsChangedGet END (OK)"); } else { tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsChangedGet END (OK)"); Assert.Pass("Not Supported profile"); } }
public void WatchApplicationAmbientChangedEventArgsApplication() { tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsApplication START"); var testingTarget = new AmbientChangedEventArgs(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <AmbientChangedEventArgs>(testingTarget, "should be an instance of AmbientChangedEventArgs class!"); Widget widget = new Widget(); var application = new WidgetApplication(widget.GetIntPtr(), false); testingTarget.Application = application; Assert.IsNotNull(testingTarget.Application, "should be not null."); widget.Dispose(); widget = null; tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsApplication END (OK)"); }
public void WatchApplicationAmbientChangedEventArgsChangedSet() { tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsChangedSet START"); if (IsWearable()) { AmbientChangedEventArgs testingTarget = new AmbientChangedEventArgs(); testingTarget.Changed = true; var result = testingTarget.Changed; Assert.IsNotNull(result, "should be not null."); Assert.AreEqual(true, result, "Retrieved result should be equal to true. "); tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsChangedSet END (OK)"); } else { tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsChangedSet END (OK)"); Assert.Pass("Not Supported profile"); } }
public void WatchApplicationAmbientChangedEventArgsApplicationGet() { tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsApplicationGet START"); if (IsWearable()) { AmbientChangedEventArgs dummy = new AmbientChangedEventArgs(); var testingTarget = dummy.Application; Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <Application>(testingTarget, "should be an instance of testing target class!"); testingTarget.Dispose(); tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsApplicationGet END (OK)"); } else { tlog.Debug(tag, $"WatchApplicationAmbientChangedEventArgsApplicationGet END (OK)"); Assert.Pass("Not Supported profile"); } }
/// <summary> /// Overrides this method if want to handle behavior. /// </summary> protected virtual void OnAmbientChanged(AmbientChangedEventArgs e) { Log.Debug("NUI", "OnAmbientChanged() is called!"); AmbientChanged?.Invoke(this, e); }
protected override void OnAmbientChanged(AmbientChangedEventArgs e) { base.OnAmbientChanged(e); Tizen.Log.Error("NUI", "AmbientChanged " + e.Changed + "\n"); }