You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
66 KiB
JavaScript

1 year ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[519],{5869:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>a,contentTitle:()=>o,default:()=>h,frontMatter:()=>t,metadata:()=>d,toc:()=>u});var s=r(5893),i=r(1151),c=r(510),l=r(4996);const t={id:"unittest",title:"36.1 \u5355\u5143/\u96c6\u6210\u6d4b\u8bd5",sidebar_label:"36.1 \u5355\u5143/\u96c6\u6210\u6d4b\u8bd5"},o=void 0,d={id:"unittest",title:"36.1 \u5355\u5143/\u96c6\u6210\u6d4b\u8bd5",description:"\ud83d\udcdd \u6a21\u5757\u66f4\u65b0\u65e5\u5fd7",source:"@site/docs/unittest.mdx",sourceDirName:".",slug:"/unittest",permalink:"/docs/unittest",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/unittest.mdx",tags:[],version:"current",lastUpdatedBy:"\u767e\u5c0f\u50e7",lastUpdatedAt:1699252005,formattedLastUpdatedAt:"Nov 6, 2023",frontMatter:{id:"unittest",title:"36.1 \u5355\u5143/\u96c6\u6210\u6d4b\u8bd5",sidebar_label:"36.1 \u5355\u5143/\u96c6\u6210\u6d4b\u8bd5"},sidebar:"docs",previous:{title:"36. \u6d4b\u8bd5\u6307\u5357",permalink:"/docs/category/test"},next:{title:"36.2 \u8d1f\u8f7d\u538b\u6d4b",permalink:"/docs/performance"}},a={},u=[{value:"36.1.1 \u5173\u4e8e\u5355\u5143\u6d4b\u8bd5",id:"3611-\u5173\u4e8e\u5355\u5143\u6d4b\u8bd5",level:2},{value:"36.1.2 \u5355\u5143\u6d4b\u8bd5\u597d\u5904",id:"3612-\u5355\u5143\u6d4b\u8bd5\u597d\u5904",level:2},{value:"36.1.3 \u5355\u5143\u6d4b\u8bd5\u7c7b\u578b",id:"3613-\u5355\u5143\u6d4b\u8bd5\u7c7b\u578b",level:2},{value:"36.1.4 \u4e3b\u6d41\u7684\u5355\u5143\u6d4b\u8bd5\u5e93",id:"3614-\u4e3b\u6d41\u7684\u5355\u5143\u6d4b\u8bd5\u5e93",level:2},{value:"36.1.5 \u7b2c\u4e00\u4e2a\u4f8b\u5b50",id:"3615-\u7b2c\u4e00\u4e2a\u4f8b\u5b50",level:2},{value:"36.1.5.1 \u521b\u5efa <code>xUnit</code> \u5355\u5143\u6d4b\u8bd5\u9879\u76ee",id:"36151-\u521b\u5efa-xunit-\u5355\u5143\u6d4b\u8bd5\u9879\u76ee",level:3},{value:"36.1.5.2 \u7b2c\u4e00\u4e2a\u6d4b\u8bd5\u65b9\u6cd5",id:"36152-\u7b2c\u4e00\u4e2a\u6d4b\u8bd5\u65b9\u6cd5",level:3},{value:"36.1.5.3 \u8fd0\u884c\u6d4b\u8bd5",id:"36153-\u8fd0\u884c\u6d4b\u8bd5",level:3},{value:"36.1.5.4 \u591a\u4e2a\u6d4b\u8bd5\u65b9\u6cd5\u6d4b\u8bd5",id:"36154-\u591a\u4e2a\u6d4b\u8bd5\u65b9\u6cd5\u6d4b\u8bd5",level:3},{value:"36.1.5.5 \u91cd\u590d/\u56de\u5f52\u6d4b\u8bd5",id:"36155-\u91cd\u590d\u56de\u5f52\u6d4b\u8bd5",level:3},{value:"36.1.6 \u96c6\u6210 <code>Furion</code> \u5f3a\u5927\u529f\u80fd",id:"3616-\u96c6\u6210-furion-\u5f3a\u5927\u529f\u80fd",level:2},{value:"36.1.6.1 \u5b89\u88c5 <code>Furion.Xunit</code> \u5305",id:"36161-\u5b89\u88c5-furionxunit-\u5305",level:3},{value:"36.1.6.2 \u6dfb\u52a0\u521d\u59cb\u914d\u7f6e\u7c7b",id:"36162-\u6dfb\u52a0\u521d\u59cb\u914d\u7f6e\u7c7b",level:3},{value:"36.1.6.3 \u4f7f\u7528 <code>Furion</code> \u5b8c\u6574\u529f\u80fd",id:"36163-\u4f7f\u7528-furion-\u5b8c\u6574\u529f\u80fd",level:3},{value:"36.1.7 \u5e26\u53c2\u6570\u7684\u6d4b\u8bd5\u65b9\u6cd5",id:"3617-\u5e26\u53c2\u6570\u7684\u6d4b\u8bd5\u65b9\u6cd5",level:2},{value:"36.1.8 \u5982\u4f55\u8fdb\u884c\u4f9d\u8d56\u6ce8\u5165",id:"3618-\u5982\u4f55\u8fdb\u884c\u4f9d\u8d56\u6ce8\u5165",level:2},{value:"36.1.8.1 \u7f16\u5199\u4e00\u4e2a <code>ICalcService</code> \u63a5\u53e3\u53ca\u5b9e\u73b0\u7c7b",id:"36181-\u7f16\u5199\u4e00\u4e2a-icalcservice-\u63a5\u53e3\u53ca\u5b9e\u73b0\u7c7b",level:3},{value:"36.1.8.2 \u5728\u6d4b\u8bd5\u7c7b\u4e2d\u8c03\u7528",id:"36182-\u5728\u6d4b\u8bd5\u7c7b\u4e2d\u8c03\u7528",level:3},{value:"36.1.8.3 \u8f93\u51fa\u65e5\u5fd7",id:"36183-\u8f93\u51fa\u65e5\u5fd7",level:3},{value:"36.1.8.4 \u5173\u4e8e\u4f9d\u8d56\u6ce8\u5165\u4f5c\u7528\u57df\u91ca\u653e",id:"36184-\u5173\u4e8e\u4f9d\u8d56\u6ce8\u5165\u4f5c\u7528\u57df\u91ca\u653e",level:3},{value:"36.1.8.5 \u6d4b\u8bd5\u91ca\u653e\u8d44\u6e90",id:"36185-\u6d4b\u8bd5\u91ca\u653e\u8d44\u6e90",level:3},{value:"36.1.8.6 <code>[AssemblyFixture]</code> \u7279\u6027",id:"36186-assemblyfixture-\u7279\u6027",level:3},{value:"36.1.8.7 <code>IClassFixture&lt;&gt;</code> \u5355\u4e2a\u6ce8\u5165",id:"36187-iclassfixture-\u5355\u4e2a\u6ce8\u5165",level:3},{value:"36.1.8.8 <code>IColl