Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hashCode = 1447981385;

            hashCode = hashCode * -1521134295 + TestCaseId.GetHashCode();
            hashCode = hashCode * -1521134295 + AzureTestCaseId.GetHashCode();
            return(hashCode);
        }
        public void GetTestCase(int id, string name, string testSuiteId)
        {
            List <TestCaseId> tcidList = proxy.GetTestCaseIDByName(name);

            Assert.AreEqual(1, tcidList.Count, "Call should return only 1 element");
            TestCaseId tcid = tcidList[0];

            Assert.AreEqual(id, tcid.id);
            Assert.AreEqual(name, tcid.name);
            Assert.AreEqual(testSuiteId, tcid.tsuite_name);
        }
Exemplo n.º 3
0
        public void GetTestCase([Values("10 G shock", "Gamma Ray Storm")] string name,
                                [Values("Handheld devices", "Handheld devices")] string testSuiteId)
        {
            List <TestCaseId> tcidList = proxy.GetTestCaseIDByName(name);

            Assert.AreEqual(1, tcidList.Count, "Call should return only 1 element");
            TestCaseId tcid = tcidList[0];

            Assert.AreNotEqual(0, tcid.id);
            Assert.AreEqual(name, tcid.name);
            Assert.AreEqual(testSuiteId, tcid.tsuite_name);
        }
Exemplo n.º 4
0
 public bool Equals(TestCase other)
 {
     return(TestCaseId.Equals(other.TestCaseId));
 }