Beispiel #1
0
        public void GetReferencedAssemblies()
        {
            Caliburn.Micro.IEventAggregator stubEventAgg = new Caliburn.Micro.EventAggregator();
            var stubVerChk = new VersionCheckMock();
            var hlp        = new DaxStudio.UI.ViewModels.HelpAboutViewModel(stubEventAgg, stubVerChk);
            var ra         = hlp.ReferencedAssemblies;

            Assert.IsTrue(ra.Count >= 32);
        }
        public void GetReferencedAssemblies()
        {
            Caliburn.Micro.IEventAggregator stubEventAgg = new Caliburn.Micro.EventAggregator();
            var stubVerChk  = new VersionCheckMock();
            var stubHost    = new Mocks.MockDaxStudioHost();
            var mockOptions = new Mock <IGlobalOptions>().Object;
            var hlp         = new DaxStudio.UI.ViewModels.HelpAboutViewModel(stubEventAgg, stubVerChk, stubHost, mockOptions);
            var ra          = hlp.ReferencedAssemblies;

            Assert.IsTrue(ra.Count >= 32);
        }
Beispiel #3
0
        public void GetAssemblyList()
        {
            Caliburn.Micro.IEventAggregator stubEventAgg = new Caliburn.Micro.EventAggregator();
            var stubVerChk = new VersionCheckMock();
            var hlp        = new DaxStudio.UI.ViewModels.HelpAboutViewModel(stubEventAgg, stubVerChk);
            var ra         = hlp.ReferencedAssemblies;

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

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