Exemplo n.º 1
0
        public void GetReferencedAssemblies()
        {
            Caliburn.Micro.IEventAggregator stubEventAgg = new Caliburn.Micro.EventAggregator();
            var stubVerChk = new VersionCheckMock();
            var stubHost   = new Mocks.MockDaxStudioHost();
            var hlp        = new DaxStudio.UI.ViewModels.HelpAboutViewModel(stubEventAgg, stubVerChk, stubHost);
            var ra         = hlp.ReferencedAssemblies;

            Assert.IsTrue(ra.Count >= 32);
        }
Exemplo n.º 2
0
        public void GetAssemblyList()
        {
            Caliburn.Micro.IEventAggregator stubEventAgg = new Caliburn.Micro.EventAggregator();
            var stubVerChk = new VersionCheckMock();
            var stubHost   = new Mocks.MockDaxStudioHost();
            var hlp        = new DaxStudio.UI.ViewModels.HelpAboutViewModel(stubEventAgg, stubVerChk, stubHost);
            var ra         = hlp.ReferencedAssemblies;

            foreach (var a in ra)
            {
                System.Diagnostics.Debug.WriteLine(a.Key);
            }

            Assert.IsTrue(ra["DaxStudio.Interfaces"].Length > 0);
        }