-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexcess-code.txt
More file actions
94 lines (46 loc) · 1.17 KB
/
excess-code.txt
File metadata and controls
94 lines (46 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
System.out.println(actual.equals(expected) ? "Expected equals actual" : "Expected not equal actual");
String title = driver.Title;
Assert.AreEqual(true, title.Contains(expectedTitle)
Assert.AreEqual(steps.IsCityToHelperDisplayed(ToPoint), true);
boolean res = triangle.check(a,b,c);
if(res==true) {
System.out.println("Triagle is possible!");
}
else {
System.out.println("Triangle is not possible!");
}
boolean flag = true;
return flag;
if ((A < 0 || B < 0 || C < 0) && (B + C > A) || (A + C > B) || (A + B > C))
return false;
else return true;
public boolean isLetterPresentInList(String textToFind) {
try {
mailPage.getFirstSubjectThatContains(textToFind);
} catch (NoSuchElementException e) {
return false;
}
return true;
}
public boolean isLogOut()
{
if (!ForgotPassword.isDisplayed())
{
return false;
}
return true;
}
flag = true;
return flag;
[TestMethod] //1
public void NegativeNumber( ) {
bool result;
try {
result = isCorrectTriagle(4, -2, 5);
}
catch (Exception e) {
Assert.AreEqual(e.Message, "Must be positive");
return;
}
Assert.Fail("Exception expected");
}