public void AdapterAssignsARegionThatHasAllViewsActive() { var control = new ItemsControl(); IRegionAdapter adapter = new ItemsControlRegionAdapter(); IRegion region = adapter.Initialize(control); Assert.IsNotNull(region); Assert.IsInstanceOfType(region, typeof(AllActiveRegion)); }
public void AdapterAssignsARegionThatHasAllViewsActive() { var control = new ItemsControl(); IRegionAdapter adapter = new ItemsControlRegionAdapter(null); IRegion region = adapter.Initialize(control, "Region1"); Assert.IsNotNull(region); Assert.IsInstanceOfType(region, typeof(AllActiveRegion)); }
public async Task AdapterAssignsARegionThatHasAllViewsActive() { await ExecuteOnUIThread(() => { var control = new ItemsControl(); IRegionAdapter adapter = new ItemsControlRegionAdapter(null); IRegion region = adapter.Initialize(control, "Region1"); Assert.IsNotNull(region); Assert.IsInstanceOfType(region, typeof(AllActiveRegion)); }); }