Ejemplo n.º 1
0
 public void ExecuteWhenAs_ShouldReturnCorrectValue(
     Navigate sut,
     [Frozen] IWebDriver webDriver,
     WebBrowser ability,
     Mock <INavigation> navigation,
     IActor actor)
 {
     //arrange
     Mock.Get(webDriver).Setup(w => w.Navigate()).Returns(navigation.Object);
     //act
     sut.ExecuteWhenAs(actor, ability);
     //assert
     navigation.Verify(n => n.GoToUrl(sut.Uri));
 }