public void Constructor_ValidReturnType_DoesNotThrow() { // Arrange // Act TestDelegate[] actions = { () => new ExecuteJsCommand <string>(DefaultJsExpression), () => new ExecuteJsCommand <bool>(DefaultJsExpression), () => new ExecuteJsCommand <long>(DefaultJsExpression), () => new ExecuteJsCommand <IElement>(DefaultJsExpression), }; // Assert AssertMultiple.DoesNotThrow(actions); }
public void Constructor_ValidUrl_DoesNotThrow() { // Arrange // Act TestDelegate[] actions = { () => new NavigateCommand("http://www.wbtstr.net"), () => new NavigateCommand("http://wbtstr.net"), () => new NavigateCommand("www.wbtstr.net"), () => new NavigateCommand("wbtstr.net"), }; // Assert AssertMultiple.DoesNotThrow(actions); }
public void IsValidDirectoryPath_InvalidInput_DoesNotThrowException() { // Arrange // Act TestDelegate[] actions = { () => MultiPurposeValidator.IsValidFileName(""), () => MultiPurposeValidator.IsValidFileName(" "), () => MultiPurposeValidator.IsValidFileName("directory*path"), () => MultiPurposeValidator.IsValidFileName("<?>") }; // Assert AssertMultiple.DoesNotThrow(actions); }
public void Constructor_ValidInput_DoesNotThrow() { // Arrange string selector = DefaultSelector; IElement element = Substitute.For <IElement>(); // Act TestDelegate[] actions = { () => new DragCommand(selector, selector), () => new DragCommand(element, element), () => new DragCommand(selector, 0, 0), () => new DragCommand(element, 0, 0), () => new DragCommand(0, 0,selector), () => new DragCommand(0, 0,element), () => new DragCommand(0, 0, 0,0), }; // Assert AssertMultiple.DoesNotThrow(actions); }
public void GetDefault_NonDefaultEnumTypes_DoesNotThrow() { // Arrange var webDriverTypes = Enum.GetValues(typeof(WebDriverType)).Cast <WebDriverType>(); // Act var actions = new List <TestDelegate>(); foreach (var webDriverType in webDriverTypes) { if (webDriverType == default(WebDriverType)) { continue; } actions.Add(() => WebDriverConfigs.GetDefault(webDriverType)); } // Assert AssertMultiple.DoesNotThrow(actions); }