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); }
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); }
public bool Equals(TestCase other) { return(TestCaseId.Equals(other.TestCaseId)); }