public void GetViewModelToViewMapping_EmptyAssembliesList_ReturnsEmptyMap()
        {
            var obj = new DefaultViewModelFinder();

            var result = obj.GetViewModelToViewMapping(Enumerable.Empty <Assembly>());

            Assert.Empty(result);
        }
        public void GetViewModelToViewMapping_AssembliesList_ReturnsCorrectMap()
        {
            var obj        = new DefaultViewModelFinder(typeof(ActivityStub), typeof(ViewControllerStub));
            var assemblies = new[]
            {
                typeof(DefaultViewModelFinder).Assembly,
                typeof(DefaultViewModelFinderTests).Assembly
            };

            var result = obj.GetViewModelToViewMapping(assemblies);

            Assert.NotEmpty(result);
            Assert.Equal(typeof(VmActivityStub), result[typeof(ViewModelStub1)]);
            Assert.Equal(typeof(VmViewControllerStub), result[typeof(ViewModelStub2)]);
        }
        public void GetViewModelToViewMapping_NullAssembliesList_ThrowsArgumentNullException()
        {
            var obj = new DefaultViewModelFinder();

            Assert.Throws <ArgumentNullException>(() => obj.GetViewModelToViewMapping(null));
        }