From 1f0c0935929d5975ae939d354c99a73997f34680 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Wed, 29 Jun 2022 11:34:30 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=A2=9E=E5=8A=A0=20Redirect=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/UnitTest/Components/RedirectTest.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/UnitTest/Components/RedirectTest.cs diff --git a/test/UnitTest/Components/RedirectTest.cs b/test/UnitTest/Components/RedirectTest.cs new file mode 100644 index 000000000..843323dd3 --- /dev/null +++ b/test/UnitTest/Components/RedirectTest.cs @@ -0,0 +1,18 @@ +// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Website: https://www.blazor.zone or https://argozhang.github.io/ + +namespace UnitTest.Components; + +public class RedirectTest : TestBase +{ + [Fact] + public void Url_Ok() + { + var cut = Context.RenderComponent(pb => + { + pb.Add(a => a.Url, "Account/Test"); + }); + Assert.Equal("Account/Test", cut.Instance.Url); + } +} -- Gitee