Exemplo n.º 1
0
        public void FadeInElement_NullOrEmptyTargetSelector_ThrowsArgumentNullException(
            [Values(null, "")] string selector)
        {
            Action action = () => Taconite.FadeOut(selector);

            action.ShouldThrow <ArgumentNullException>();
        }
Exemplo n.º 2
0
        public void FadeOutElement()
        {
            var selector = "#selector";

            var result = Taconite.FadeOut(selector);

            result.Commands.Should().HaveCount(1);
            var command = result.Commands.Single();

            command.As <NonElementCommand>()
            .Should().NotBeNull()
            .ShouldHave().SharedProperties().EqualTo(new
            {
                Command  = "fadeOut",
                Selector = selector
            });
            command.As <NonElementCommand>().Arguments.Should().BeEmpty();
        }
Exemplo n.º 3
0
 public TaconiteResult FadeOut()
 {
     return(Taconite.FadeOut("#fadeOutTarget .example-block"));
 }