下载:Personal_Study_Assistant.zip
背景
实际中,我们可能要经常会对一些API或小核心代码不太确定,于是写一些小测试代码,如正则表达式测试。时间久了,这些小项目散落得到处都是,查找和整理起来都比较费时间。
“工欲善其事,必先利其器”,下面让我们来解决一下这个问题吧。
程序的思路是: 1所有的测试文件统一归类存放于不同的Project; 2Project启动时,自动生成所有测试代码的清单,通过输入清单序号选择对应的测试来执行,不用更改Program的Main方法。
(目前还不能显示测试用例对应的文件名)。
效果
JS7XXNcxEOsbYWKO6eE60DDBkovwePGgLbNtrJKJo6v9ZU9MfpLJumBlL1Et1K49xJ/r0v77tHVfCyG+O6SvURtsnyfkIlRT8xBvKBQgYi/ZY3rGW67+M2kvkfYzac+nn4DX8gOouSgRGd53PkRwl4Kvog6XeiX2P2pPy78IWZ2frjC+HOKB72EvlAYCANhILOr62Cg6joQd6VNYJH0gtaipGrg6ZuymqVK+WW/lF/krz5cXX3I0RcaDn3g+kIxNmLiSuELFYtF3QFDSi4D094WklCy3dCnKJkN/C0aoET+Jr8HwrcJK2H7reiX9GSXjAaO25wTtE+cy6sPlxkN/O3VAS0bqjsUlNwlp4EoKCilFMbArOPfAQAFgYEA2AQGAmAT5/Lyw+WlCQMX1uZTlko/BgAThVED04zr1Ro46jSjexKanVHad863FAAmKGTgcDhMP3NRA0edpuv6vfi/nZ58xhKWAsAU+Q0cDAZzc3Pp5ycGiveUkn/VBo46TUqktORbCgBzwEAAbJLTwMFg8ODBA9d10y8SGhjqd3F++enu8/7eAXcnt9JApUo93212euMLPf4qTyMgdW0YzdHz3abvR43WeAYoDCrEubj8cJHRQKJfDgM9z/v1n79yg5iS68BRpynvROn5xLxRp8k5qF1qLFa8VM+PHe751J/ovgHVkdlAWr/iBpZTB47i/zAzqZZip0dLUauiakjUgqBSshnI6ZfDwPX1v9Ct0MLXgbSB4jyKpVIZCO2ACTIYOBwO5+bmXJb070R6YkIJPc/7+R8/Z/g1oue7kt8VqKZjrA3ThlQtRbVChaWYFikAFeJcXL6/uHxfj1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mIab3ITuIZmk6M3L6DR8rZx0ZzLPFuNTW5O+79tRQn1w5hjoppL7veKqK9krzYeJR2rMYjypc1KHlJHoyN+PXrENC+L3Ij8jrr29dJStOIzti2KVO+Epvc4mj6VQajNBKIv7/M7RImaM8vkKPRtoP9VPptW2dSZ0Hi91huwfSqg0fK2cdGcyzxbjU12+40N9qzQ7/avk2ivZplTMSafJmNulkKT6f+oi0SR1bvBdempn0dX8r7aNWI5n2xZMqGTZ17IfIrD0bHiMm1aK+DdQMS1G3722A/lSNtO5GxDUzb9R8bp/wmYt92nOwkN54EXSsX00uKJEIdp9wUWOOaeSnnrdZfWagE7RtnErFPxOdBVHalHU2s2idW8tWxacmOya9tOzZik9RZx7UjdTAaSSR+uV9TkYESm207YMBoTjQvecmGKX0CPFLg12QqEfvc4E3GRXlJttjzKwlemZdVO0TwNiG61MlL5NdGXjZMyUMignxFphJMmfDqZpphx6L1NpLVsc/uteHFXqgiv5bs0GXyUuvXmRuS3HsideCGoYxTspfNVxQnkKBu282d/VT4LWkukuKT7Yg7G+81QIfhVkwXD/9wKzXwPmjb/sDSn5E95S7FkQ9thlsxXcx3uJUa+Ai0bQAAAMA36LTtgebO/ubOgebOAbRtAAAAwEXs/0tyAAAAAKQY/MedAAAAgG9Qt+1/Xb0b0fGrd9G2AQAAABdRt+0Djbeo0LYBAAAAF0HbBgAAAHwD2jYAAADgG9C2AQAAAN+Atg0AAAD4BrRtAAAAwDegbQMAAAC+AW0bAAAA8A1o2wAAAIBvQNsGAAAAfAPaNgAAAOAb0LYBAAAA34C2DQAAAPgGtG0AAADAN6BtAwAAAL4BbRsAAADwDWjbAAAAgG9A2wYAAAB8A9o2AAAA4BvQtgEAAADfgLYNAAAA+Aa0bQAAAMA3oG0DAAAAvgFtGwAAAPANaNsAAACAb0DbBgAAAHwD2jYAAADgG5Rt+/8BWhtNig8TuQ4AAAAASUVORK5CYII=" alt="" />
说明
继续往下前,建议先下载Demo。
1 Cp.Core
核心层中目前只有一个类和一个接口。接口ITest描述了作为测试实例应该具备的属性和方法。CaseContainer用于扫描当前项目中的测试用例,生成上面的菜单。
代码中使用到的主要知识点为反射。
2 Cp.EmitStudy
有了核心层,下面就开始根据我们的需求,进行分类存放测试实例了。Demo中,以Emit学习为例,那了一个新的Project,类型为控制台类型。
新项目的Program.cs的Main函数只有一行代码:
static void Main(string[] args) { CaseContainer.ShowCases(); }
余下的就是写我们的测试或学习用例了。Demo中Test2为我模拟AutoMapper写的一段代码,用于在两个对象间相互浅复制属性:
class Test2:ITest { class Model { public string Name { get; set; } } class ViewModel { public string Name { get; set; } } public string Name { get { return "Linq Assign Expression Test"; } } public string Description { get { return "This demo demenstrates how to use Linq Expression to mapping properties between two object."; //return "此示例展示了如何利用Linq Expression将两个对象的属性进行映射"; } } public void Test() { Expression<Func<Model, string>> exp1 = m => m.Name; Expression<Func<ViewModel, string>> exp2 = vm => vm.Name; var assignExp = Expression.Assign(exp2.Body, exp1.Body); var mapAction = Expression.Lambda<Action<Model, ViewModel>>(assignExp, exp1.Parameters[0], exp2.Parameters[0]).Compile(); var m1 = new Model() { Name = "MODEL's Name" }; var m2 = new ViewModel(); mapAction(m1, m2); Console.WriteLine(m2.Name); } }
3 后续
余下来要做的就是,写新的用例,放在当前项目下,然后F5。查看和启动都会比较方便。
有时候我们可以为了学习某一个框架或一些代码自己写一些测试Demo,那么我们可以专门建一个新的Study项目。
我们可以把此项目设置一个快捷方式到桌面,脑中灵光一闪想写程序的时候就点吧~