Hi,
I am trying to test a component that has a 'TelerikDropZone' inside, I don't need to do any interaction with the drop zone but when I try to render my component (using bUnit)
It gives an error
As best I can tell looking at it, it seems to be coming up from the 'BaseComponent.Localizer'
And if I just comment out the TelerikDropZone my tests run fine.
DropZone definition if it helps -
Is there some extra setup I need to do here in order to get it to work?
Thanks!
I am trying to test a component that has a 'TelerikDropZone' inside, I don't need to do any interaction with the drop zone but when I try to render my component (using bUnit)
var myCmp = RenderComponent<MyComponent>();
System.NullReferenceException: Object reference not set to an instance of an object. System.NullReferenceException Object reference not set to an instance of an object. at Telerik.Blazor.Components.TelerikDropZone..ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
[Parameter]
public string HintText { get; set; } = BaseComponent.Localizer["DropZone_Hint"];
And if I just comment out the TelerikDropZone my tests run fine.
DropZone definition if it helps -
<TelerikDropZone Id="myDz">
<Template>
<div class="hint">
<i class="far fa-file-plus me-2"></i>
<span>
Drag and drop file here
</span>
</div>
</Template>
</TelerikDropZone>
Is there some extra setup I need to do here in order to get it to work?
Thanks!