add documentation to test cases in C#

This commit is contained in:
wing328 2015-11-22 16:14:16 +08:00 committed by Alvin Zeng
parent 0ed70dcb4d
commit ff3ba73d18
7 changed files with 22 additions and 21 deletions

View File

@ -2,28 +2,11 @@
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" /> <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.Workbench ActiveDocument="TestPet.cs"> <MonoDevelop.Ide.Workbench ActiveDocument="TestPet.cs">
<Files> <Files>
<File FileName="TestPet.cs" Line="12" Column="18" /> <File FileName="TestPet.cs" Line="8" Column="25" />
</Files> </Files>
<Pads>
<Pad Id="MonoDevelop.NUnit.TestPad">
<State name="__root__">
<Node name="SwaggerClientTest" expanded="True">
<Node name="SwaggerClientTest" expanded="True">
<Node name="SwaggerClient" expanded="True">
<Node name="TestPet" expanded="True">
<Node name="TestPet" expanded="True">
<Node name="TestEqual" selected="True" />
</Node>
</Node>
</Node>
</Node>
</Node>
</State>
</Pad>
</Pads>
</MonoDevelop.Ide.Workbench> </MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints> <MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore /> <BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints> </MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches /> <MonoDevelop.Ide.DebuggingService.PinnedWatches />
</Properties> </Properties>

View File

@ -49,7 +49,9 @@ namespace SwaggerClient.TestPet
petApi.DeletePet(petId, "test key"); petApi.DeletePet(petId, "test key");
} }
/// <summary>
/// Test GetPetByIdAsync
/// </summary>
[Test ()] [Test ()]
public void TestGetPetByIdAsync () public void TestGetPetByIdAsync ()
{ {
@ -74,6 +76,9 @@ namespace SwaggerClient.TestPet
} }
/// <summary>
/// Test GetPetById
/// </summary>
[Test ()] [Test ()]
public void TestGetPetById () public void TestGetPetById ()
{ {
@ -97,6 +102,9 @@ namespace SwaggerClient.TestPet
} }
/// <summary>
/// Test UpdatePetWithForm
/// </summary>
[Test ()] [Test ()]
public void TestUpdatePetWithForm () public void TestUpdatePetWithForm ()
{ {
@ -115,6 +123,9 @@ namespace SwaggerClient.TestPet
Assert.AreEqual (56, response.Category.Id); Assert.AreEqual (56, response.Category.Id);
} }
/// <summary>
/// Test UploadFile
/// </summary>
[Test ()] [Test ()]
public void TestUploadFile () public void TestUploadFile ()
{ {
@ -129,7 +140,9 @@ namespace SwaggerClient.TestPet
} }
/// <summary>
/// Test FindPetByStatus
/// </summary>
[Test ()] [Test ()]
public void TestFindPetByStatus () public void TestFindPetByStatus ()
{ {
@ -145,6 +158,9 @@ namespace SwaggerClient.TestPet
} }
/// <summary>
/// Test Equal
/// </summary>
[Test ()] [Test ()]
public void TestEqual() public void TestEqual()
{ {

View File

@ -12,3 +12,5 @@
/Users/williamcheng/Code/wing328/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/Newtonsoft.Json.dll /Users/williamcheng/Code/wing328/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/Newtonsoft.Json.dll
/Users/williamcheng/Code/wing328/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/nunit.framework.dll /Users/williamcheng/Code/wing328/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/nunit.framework.dll
/Users/williamcheng/Code/wing328/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/RestSharp.dll /Users/williamcheng/Code/wing328/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/RestSharp.dll
/Users/williamcheng/Code/wing328/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb
/Users/williamcheng/Code/wing328/swagger-codegen/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll