public void GeneratesResultForXamarinAndroid() { var project = new Project { ProjectDocument = new XDocument( new XElement("Project", new XElement( XName.Get("ProjectTypeGuids", Project.XmlLegacyNamespace.NamespaceName), "{EFBA0AD7-5A72-4C68-AF49-83D382785DCF}"))) }; var results = new W001IllegalProjectTypeDiagnostic().Analyze(project); Assert.AreEqual(1, results.Count); }
public void DoesNotGenerateResultForValidType() { var project = new Project { ProjectDocument = new XDocument( new XElement("Project", new XElement( XName.Get("ProjectTypeGuids", Project.XmlLegacyNamespace.NamespaceName), "{318C4C53-4319-472D-A480-6540F3D375FD}"))) }; var results = new W001IllegalProjectTypeDiagnostic().Analyze(project); Assert.IsNotNull(results); Assert.AreEqual(0, results.Count); }