aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-05-02 17:36:54 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-05-02 17:36:54 +0300
commitee697f7a3350d0a97bddee4de3a2ae4f9d285052 (patch)
tree2dc2e3bb811b0d89a3c4c51801c1572966fcee7c /Software/Visual_Studio/Tango.UnitTesting
parent73c4b814f1f28170ae72723568189096413c3564 (diff)
downloadTango-ee697f7a3350d0a97bddee4de3a2ae4f9d285052.tar.gz
Tango-ee697f7a3350d0a97bddee4de3a2ae4f9d285052.zip
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/TFS_TST.cs52
1 files changed, 51 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/TFS_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/TFS_TST.cs
index 2727ad00e..3fff8daae 100644
--- a/Software/Visual_Studio/Tango.UnitTesting/TFS_TST.cs
+++ b/Software/Visual_Studio/Tango.UnitTesting/TFS_TST.cs
@@ -43,12 +43,62 @@ namespace Tango.UnitTesting
Assert.IsNotNull(project);
- var workItem = client.GetWorkItem(project, 153).Result;
+ var workItem = client.GetWorkItem(project, 168).Result;
Assert.IsNotNull(workItem);
}
[TestMethod]
+ public void Get_Work_Items_Created_By()
+ {
+ ITeamFoundationServiceClient client = CreateClient();
+
+ var project = client.GetProject("Tango").Result;
+
+ Assert.IsNotNull(project);
+
+ var workItems = client.GetWorkItemsCreatedBy(project, project.Members.SingleOrDefault(x => x.AssignName.ToLower().Contains("roy"))).Result;
+
+ Assert.IsTrue(workItems.Count > 0);
+ }
+
+ [TestMethod]
+ public void Set_Work_Item_State()
+ {
+ ITeamFoundationServiceClient client = CreateClient();
+
+ var project = client.GetProject("Tango").Result;
+
+ Assert.IsNotNull(project);
+
+ var workItem = client.GetWorkItem(project, 164).Result;
+
+ Assert.IsNotNull(workItem);
+
+ var updated = client.SetWorkItemState(project, workItem, State.Active).Result;
+
+ Assert.IsTrue(updated.State == State.Active);
+ }
+
+ [TestMethod]
+ public void Add_Work_Item_Comment()
+ {
+ ITeamFoundationServiceClient client = CreateClient();
+
+ var project = client.GetProject("Tango").Result;
+
+ Assert.IsNotNull(project);
+
+ var workItem = client.GetWorkItem(project, 165).Result;
+
+ Assert.IsNotNull(workItem);
+
+ var updated = client.AddWorkItemComment(project, workItem, project.Members.SingleOrDefault(x => x.AssignName.ToLower().Contains("roy")), "Test Comment").Result;
+
+ Assert.AreEqual(updated.Comment, "Test Comment");
+ }
+
+ [TestMethod]
public void Upload_Work_Item()
{
ITeamFoundationServiceClient client = CreateClient();