How to associate a XUnit Fact to a Test Case in TFS
问题 I am trying to figure out how to associate a Test Case in TFS 2018 to a Xunit Fact in a .Net Core project. If i click on the XUnit Fact in the Visual Studio 2017 Test Explorer, the association option is disabled. Does anyone know how to associate a Xunit Fact to a Test Case in TFS? 回答1: There is a Rest API could update work item filed. For example: PATCH https://servername:8080/tfs/DefaultCollection/_apis/wit/workitems/[testcaseid]?api-version=1.0 Content-Type: application/json-patch+json