Beispiel #1
0
            public async Task Should_Return_Correct_Type()
            {
                // Given
                NavigatorState sut = new NavigatorStateFixture();

                // When
                var result = await sut.PopUntil(Route.WithName <Route <TestViewModel> >("modal"));

                // Then
                result.Should().BeOfType <Route <TestViewModel> >();
            }
Beispiel #2
0
            public async Task Should_Receive_Pop_Until()
            {
                // Given
                var            navigator = Substitute.For <INavigator>();
                NavigatorState sut       = new NavigatorStateFixture().WithNavigator(navigator);

                // When
                await sut.PopUntil(Route.WithName <Route <TestViewModel> >("modal"));

                // Then
                await navigator.Received().PopUntil(Arg.Any <Expression <Func <Route <TestViewModel>, bool> > >());
            }