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

XFEExtension

【DLL】XFE各类拓展是一个C#的DLL库,旨在优化C#代码中常用语句的使用,并提供更简洁的访问方式,同时提供Xunit测试框架,快速搭建服务器/客户端,免费ChatGPTAPI接口,免费通讯服务器,XFE下载器,新增格式等

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

XFEstudio/XFEExtension

移除测试类中的部分内容

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

代码差异

4 个文件 +1 -60
Deleted XFEExtension.NetCore.Analyzer.Test/AppPath.cs +0 -11
@@ -1,11 +0,0 @@
1 using XFEExtension.NetCore.PathExtension;
2
3 namespace XFEExtension.NetCore.Analyzer.Test;
4
5 public partial class AppPath
6 {
7 [AutoPath]
8 readonly static string myTestPath = "MyTestPath/Test";
9 [AutoPath]
10 readonly static string mySecTestPath = $"{MyTestPath}/Sec";
11 }
Modified XFEExtension.NetCore.Analyzer.Test/Program.cs +1 -7
@@ -1,20 +1,14 @@
1 using XFEExtension.NetCore.FileExtension;
2
3 namespace XFEExtension.NetCore.Analyzer.Test;
1 namespace XFEExtension.NetCore.Analyzer.Test;
4 2
5 3 internal class Program
6 4 {
7 5 public static void Main(string[] args)
8 6 {
9 //TODO: 编写测试代码
10 7 var testClass = new TestClass("测试名称", "测试描述哈哈", 59)
11 8 {
12 9 Tags = [["123", "321"], ["1234567", "7654321"]],
13 10 Enum = MyEnum.Test1
14 11 };
15 Console.WriteLine(SystemProfile.Age);
16 Console.WriteLine(SystemProfile.Name);
17 SystemProfile.Name.WriteIn(AppPath.MySecTestPath + "/test1.txt");
18 12 }
19 13 }
20 14 enum MyEnum
Deleted XFEExtension.NetCore.Analyzer.Test/SystemProfile.cs +0 -29
@@ -1,29 +0,0 @@
1 using XFEExtension.NetCore.ProfileExtension;
2
3 namespace XFEExtension.NetCore.Analyzer.Test;
4
5 public partial class SystemProfile
6 {
7 [ProfileProperty]
8 int _age = 1;
9 [ProfileProperty]
10 string name = "12";
11 static partial void GetNameProperty()
12 {
13 Console.WriteLine("获取了Name");
14 }
15 static partial void SetNameProperty(string value)
16 {
17 Console.WriteLine($"设置了Name:从{Name}变为了{value}");
18 }
19
20 static partial void GetAgeProperty()
21 {
22 Console.WriteLine("获取了Age");
23 }
24
25 static partial void SetAgeProperty(int value)
26 {
27 Console.WriteLine($"设置了Age:从{Age}变为了{value}");
28 }
29 }
Deleted XFEExtension.NetCore.Analyzer.Test/UpdatableMemoryListener.cs +0 -13
@@ -1,13 +0,0 @@
1 using XFEExtension.NetCore.ImplExtension;
2
3 namespace XFEExtension.NetCore.Analyzer.Test;
4
5 [CreateImpl]
6 public abstract class UpdatableMemoryListener
7 {
8 internal UpdatableMemoryListener(params int[] args)
9 {
10 foreach (var arg in args)
11 Console.WriteLine(arg);
12 }
13 }