public void ResolveForViewModelTypeWhenPageOfDifferentAssembly()
        {
            PageNavigationTypeResolver.AssignAssemblies <TestPage, TestPageViewModel>();
            var actual = PageNavigationTypeResolver.ResolveForViewModelType(typeof(TestPage));

            Assert.Equal(typeof(TestPageViewModel), actual);
        }
        public void Clear()
        {
            PageNavigationTypeResolver.AssignAssemblies <TestPage, TestPageViewModel>();
            PageNavigationTypeResolver.Clear();

            Assert.Null(PageNavigationTypeResolver.ResolveForViewModelType(typeof(TestPage)));
            Assert.Null(PageNavigationTypeResolver.ResolveForViewType <TestPageViewModel>());
        }
        public void ResolveForViewModelTypeWhenPageOfSameAssembly()
        {
            var actual = PageNavigationTypeResolver.ResolveForViewModelType(typeof(MockView));

            Assert.Equal(typeof(MockViewModel), actual);
        }
 public void ResolveForViewModelTypeWhenArgumentIsNull()
 {
     Assert.Throws <ArgumentNullException>(() => PageNavigationTypeResolver.ResolveForViewModelType(null));
 }