diff --git a/CS/DevExpressBunit.Test/DevExpressBunit.Test.csproj b/CS/DevExpressBunit.Test/DevExpressBunit.Test.csproj index 368015a..c1518d7 100644 --- a/CS/DevExpressBunit.Test/DevExpressBunit.Test.csproj +++ b/CS/DevExpressBunit.Test/DevExpressBunit.Test.csproj @@ -1,21 +1,22 @@  - net8.0 + net10.0 enable false - - - - - - + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/CS/DevExpressBunit.Test/DevExpressComponentTest.cs b/CS/DevExpressBunit.Test/DevExpressComponentTest.cs index 0f41eb6..3b05e62 100644 --- a/CS/DevExpressBunit.Test/DevExpressComponentTest.cs +++ b/CS/DevExpressBunit.Test/DevExpressComponentTest.cs @@ -17,7 +17,7 @@ namespace DevExpressBunit.Test { public static class BUnitTestContextExtensions { - public static void AddDevExpressBlazorTesting(this TestContext testContext) { + public static void AddDevExpressBlazorTesting(this BunitContext testContext) { testContext.Services.AddSingleton(); testContext.Services.TryAddScoped(); testContext.Services.TryAddScoped(); @@ -32,11 +32,6 @@ public static void AddDevExpressBlazorTesting(this TestContext testContext) { testContext.JSInterop.ConfigureJSInterop(); } - public static async Task WaitForAssertionAsync(this IRenderedFragmentBase renderedFragment, Action assertion, TimeSpan? timeout = null) { - using var waiter = new WaitForAssertionHelper(renderedFragment, assertion, timeout); - await waiter.WaitTask; - } - static void ConfigureJSInterop(this BunitJSInterop interop) { interop.Mode = JSRuntimeMode.Loose; var rootModule = interop.SetupModule("./_content/DevExpress.Blazor/dx-blazor.js"); diff --git a/CS/DevExpressBunit.Test/GridApplyFilter.cs b/CS/DevExpressBunit.Test/GridApplyFilter.cs index c3cd57e..e96e0f4 100644 --- a/CS/DevExpressBunit.Test/GridApplyFilter.cs +++ b/CS/DevExpressBunit.Test/GridApplyFilter.cs @@ -7,15 +7,15 @@ namespace DevExpressBunit.Test { public class GridApplyFilter : IDisposable { - public TestContext Context { get; } + public BunitContext Context { get; } public GridApplyFilter() { - Context = new TestContext(); + Context = new BunitContext(); Context.Services.AddOptions(); Context.AddDevExpressBlazorTesting(); } [Fact] public void CheckIfNodeClickAppliesFilter() { - var cut = Context.RenderComponent(); + var cut = Context.Render(); var treeview = cut.FindComponent().Instance; var grid = cut.FindComponent().Instance; cut.InvokeAsync(() => treeview.SelectNode(x => x.Text == "Filter by date")); diff --git a/CS/DxTestProject/DxTestProject.csproj b/CS/DxTestProject/DxTestProject.csproj index 2fb84f4..62e49e9 100644 --- a/CS/DxTestProject/DxTestProject.csproj +++ b/CS/DxTestProject/DxTestProject.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 disable enable