예제 #1
0
 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 _));
 }
예제 #2
0
 public void PublishAssembliesComponent()
 {
     Assert.True(LaraUI.TryGetComponent("x-com", out var type));
     Assert.Same(typeof(Xcom), type);
 }