protected override void LoadComplete() { base.LoadComplete(); Add(overlay = new TestFullscreenOverlay()); AddStep(@"toggle", overlay.ToggleVisibility); }
protected override void LoadComplete() { base.LoadComplete(); int fireCount = 0; Add(overlay = new TestFullscreenOverlay()); overlay.State.ValueChanged += _ => fireCount++; AddStep(@"show", overlay.Show); AddAssert("fire count 1", () => fireCount == 1); AddStep(@"show again", overlay.Show); // this logic is specific to FullscreenOverlay AddAssert("fire count 2", () => fireCount == 2); AddStep(@"hide", overlay.Hide); AddAssert("fire count 3", () => fireCount == 3); }