public void RegisterComponentSucceeds() { _app.PublishComponent(new WebComponentOptions { ComponentTagName = "x-caca", ComponentType = typeof(MyComponent) }); Assert.True(LaraUI.TryGetComponent("x-caca", out var type)); _app.UnPublishWebComponent("x-caca"); Assert.Equal(typeof(MyComponent), type); Assert.False(LaraUI.TryGetComponent("x-caca", out _)); }
public void PublishAssembliesComponent() { Assert.True(LaraUI.TryGetComponent("x-com", out var type)); Assert.Same(typeof(Xcom), type); }