Esempio n. 1
0
        public void SetAnyCPUToPlatform()
        {
            var converter = new VSslnToCMake.ConverterVs2015();

            converter.Platform = "Any CPU";
            converter.SetLogger(new VSslnToCMake.StdLogger());
            var ret = converter.Convert((EnvDTE.DTE)null);

            Assert.IsFalse(ret);
        }
Esempio n. 2
0
        public void LoadSolutionWithNoVCProjects()
        {
            var testSlnsDir = Path.Combine(
                Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
                @"..\..\..\tests");

            var slnPath = Path.Combine(testSlnsDir,
                                       @"CsharpProjects\CsharpProjects.sln");
            var dte = (EnvDTE80.DTE2)System.Activator.CreateInstance(
                System.Type.GetTypeFromProgID("VisualStudio.DTE.14.0"));

            MessageFilter.Register();
            dte.Solution.Open(slnPath);

            var converter = new VSslnToCMake.ConverterVs2015();

            converter.SetLogger(new VSslnToCMake.StdLogger());
            var ret = converter.Convert((EnvDTE.DTE)dte);

            Assert.IsFalse(ret);
        }