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")); }
/// <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(); }
public void TestPluginKey() { var plugin = new CxxPlugin(); Assert.AreEqual("CxxPlugin", plugin.GetKey(new ConnectionConfiguration())); }