Exemplo n.º 1
0
        public void TestSetTimeoutsToExplicitValues()
        {
            SetTimeouts ability = SetTimeouts.To(60, 10);

            ability.StandardSeconds.Should().Be(60);
            ability.ExtraSeconds.Should().Be(10);
        }
Exemplo n.º 2
0
 public void SetUpActor()
 {
     Actor     = new Actor(logger: new ListLogger());
     WebDriver = new Mock <ITestWebDriver>();
     WebDriver.SetupGet(x => x.WindowHandles).Returns(new List <string>().AsReadOnly());
     Actor.Can(BrowseTheWeb.With(WebDriver.Object));
     Actor.Can(SetTimeouts.To(0));
 }
Exemplo n.º 3
0
 public void CalculateTimeoutWithOverride(int standard, int extra, int overridden, int expected)
 {
     SetTimeouts.To(standard, extra).CalculateTimeout(overridden).Should().Be(expected);
 }