Posted 5 May 2021, 9:06 am ESTI wrote the following test in order, using bUnit to start improving the coverage:
public class C1_AlertTest : TestContext
public void SampleTest()
using var ctx = new TestContext();
var cut = RenderComponent<C1_Alert>(
parameters => parameters.Add(
p=> p.WarningMessage, "WarningTest"
var warningMessageDiv = cut.Find("WarningMessage");
var str = warningMessageDiv.Children.ToString();
This compiles perfectly fine, however, unlike the actual codebase (which runs perfectly) I am not able to write tests, because I run into the following error:
[xUnit.net 00:00:00.98] System.UnauthorizedAccessException : The ComponentOne license key is invalid or missing.
Am I missing a necessary step to allow tests to work. I've already tried adding the ComponentOne NuGet under the test project, but the error is still there.