Ejemplo n.º 1
0
 public void TestLanguageIsSupported()
 {
     var plugin = new CxxPlugin();
     Assert.IsTrue(CxxPlugin.IsSupported("file.cpp"));
     Assert.IsTrue(CxxPlugin.IsSupported("file.h"));
     Assert.IsTrue(CxxPlugin.IsSupported("file.cc"));
     Assert.IsFalse(CxxPlugin.IsSupported("file.cs"));
 }
Ejemplo n.º 2
0
        /// <summary>
        ///     The create main issue window.
        /// </summary>
        private void CreateMainIssueWindow()
        {
            var win = new Window();
            IAnalysisPlugin plugin = new CxxPlugin() as IAnalysisPlugin;

            win.Content =
                plugin.GetPluginControlOptions(
                    new ConnectionConfiguration("http://sonar", "jocs1", "jocs1"));
            win.ShowDialog();
        }
Ejemplo n.º 3
0
 public void TestPluginKey()
 {
     var plugin = new CxxPlugin();
     Assert.AreEqual("CxxPlugin", plugin.GetKey(new ConnectionConfiguration()));
 }