Esempio n. 1
0
    public async Task Empty()
    {
        var navigationContext = A.Dummy <INavigationContext>();

        var blockNavigator = A.Fake <IBlockNavigator>(i => i.Strict());

        A.CallTo(() => blockNavigator.MoveAsync(null, null, null, true))
        .WithAnyArguments()
        .Returns((INode)null);

        var sut = new SceneNavigator(blockNavigator);

        (await sut.MoveAsync(navigationContext, true)).Should().BeFalse();
        (await sut.MoveAsync(navigationContext, false)).Should().BeFalse();
    }
Esempio n. 2
0
 public async Task MoveAsync(bool forward, INode node)
 {
     (await sut.MoveAsync(navigationContext, forward)).Should().Be(node is not null);
     navigationContext.CurrentNode.Should().BeSameAs(node);
 }