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

                // When
                var result = await sut.Pop <Route <TestViewModel> >();

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

                // When
                await sut.Pop <Route <TestViewModel> >();

                // Then
                await navigator.Received().Pop <Route <TestViewModel> >();
            }