XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.XUnit

【DLL】提供方便快捷的测试,无需编写Main方法,可直接添加特性在类或方法上进行测试

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFEExtension.NetCore.XUnit

移除 XFETestAttributeBase 和 SMTestAttribute 的 [Obsolete] 标记

移除了 XFETestAttributeBase 和 SMTestAttribute 上的 [Obsolete] 标记,允许继续正常使用这些特性。项目版本号从 4.0.1 升级为 4.0.2。

c089496
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

2 个文件 +1 -3
Modified XFEExtension.NetCore.XUnit/Attributes/LegacyAttributes.cs +0 -2
@@ -3,7 +3,6 @@ namespace XFEExtension.NetCore.XUnit.Attributes;
3 3 /// <summary>
4 4 /// 为 3.x 兼容特性保存构造参数的旧基类;新代码应使用 4.x 测试和基准特性。
5 5 /// </summary>
6 [Obsolete("Legacy attribute base. Use the XUnit 4.0 attributes; this type will be removed in XUnit 5.0.")]
7 6 public class XFETestAttributeBase : Attribute
8 7 {
9 8 /// <summary>
@@ -140,7 +139,6 @@ public sealed class MNRTestAttribute : MRTestAttribute
140 139 /// <summary>
141 140 /// 兼容 3.x 的单方法计时特性;4.x 在默认测试模式中单次执行并展示其全部控制台输出。
142 141 /// </summary>
143 [Obsolete("Use TestAttribute or TestCaseAttribute. Legacy attributes will be removed in XUnit 5.0.")]
144 142 [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
145 143 public class SMTestAttribute : XFETestAttributeBase
146 144 {
Modified XFEExtension.NetCore.XUnit/XFEExtension.NetCore.XUnit.csproj +1 -1
@@ -15,7 +15,7 @@
15 15 <PackageReadmeFile>README.md</PackageReadmeFile>
16 16 <RepositoryUrl>https://github.com/XFEstudio/XFEExtension.NetCore.XUnit</RepositoryUrl>
17 17 <PackageTags>XFE;Test;Benchmark;Runner;Unit</PackageTags>
18 <Version>4.0.1</Version>
18 <Version>4.0.2</Version>
19 19 <PackageLicenseFile>LICENSE</PackageLicenseFile>
20 20 <PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
21 21 <PackageReleaseNotes>