This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HtmlControl | |
{ | |
protected readonly IWebElement webElement; | |
public HtmlControl(IWebElement webElement) | |
{ | |
this.webElement = webElement; | |
} | |
public void Click() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void CumulativeAssert_MultipleFailuresExample() | |
{ | |
//Some actions | |
CumulativeAssert.That(false,"Boolean failure"); | |
//Some actions | |
CumulativeAssert.That(true, "Boolean passed"); | |
//More actions | |
CumulativeAssert.That(1, Is.EqualTo(2), "int equality"); | |
//Some actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void BlogExample_PropertySet() | |
{ | |
var expected = new BlogExampleObject | |
{ | |
ChildObject = new TestObject{Value="ChildObjectValue1"}, | |
ChildObjectList = new List<TestObject>{new TestObject{Value="ListObject1"}}, | |
IgnoredProperty = "1", | |
ProcessedProperty = "Test" | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BlogExampleObject | |
{ | |
//Will always check that actual value is greater | |
// than attribute argument | |
//And will ignore comparison if expected is 0 | |
[ValidateActualGreaterThan(0)] | |
public int Id { get; set; } | |
//Will always check that actual value is not null | |
//And will ignore comparison if expected is null |
NewerOlder