Exemple #1
0
        public void TestSetTimeoutsToExplicitValues()
        {
            SetTimeouts ability = SetTimeouts.To(60, 10);

            ability.StandardSeconds.Should().Be(60);
            ability.ExtraSeconds.Should().Be(10);
        }
Exemple #2
0
        public void TestSetTimeoutsToDefaultValues()
        {
            SetTimeouts ability = SetTimeouts.ToDefaultValues();

            ability.StandardSeconds.Should().Be(SetTimeouts.DefaultStandardTimeout);
            ability.ExtraSeconds.Should().Be(SetTimeouts.DefaultExtraTimeout);
        }
Exemple #3
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));
 }
Exemple #4
0
 public void CalculateTimeoutWithOverride(int standard, int extra, int overridden, int expected)
 {
     SetTimeouts.To(standard, extra).CalculateTimeout(overridden).Should().Be(expected);
 }