-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into SolutionSupportsAllProjects
- Loading branch information
Showing
12 changed files
with
129 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,48 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AssemblyName>Skyline.DataMiner.CICD.Parsers.Common</AssemblyName> | ||
<RootNamespace>Skyline.DataMiner.CICD.Parsers.Common</RootNamespace> | ||
<GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
<Authors>SkylineCommunications</Authors> | ||
<Company>Skyline Communications</Company> | ||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageProjectUrl>https://skyline.be/</PackageProjectUrl> | ||
<PackageTags>Skyline;DataMiner;CICD</PackageTags> | ||
<Description>Library providing Common methods to parse DataMiner XML files.</Description> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<RepositoryUrl>https://github.com/SkylineCommunications/Skyline.DataMiner.CICD.Parsers</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AssemblyName>Skyline.DataMiner.CICD.Parsers.Common</AssemblyName> | ||
<RootNamespace>Skyline.DataMiner.CICD.Parsers.Common</RootNamespace> | ||
<GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
<Authors>SkylineCommunications</Authors> | ||
<Company>Skyline Communications</Company> | ||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageProjectUrl>https://skyline.be/</PackageProjectUrl> | ||
<PackageTags>Skyline;DataMiner;CICD</PackageTags> | ||
<Description>Library providing Common methods to parse DataMiner XML files.</Description> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<RepositoryUrl>https://github.com/SkylineCommunications/Skyline.DataMiner.CICD.Parsers</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\README.md"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
<None Include="..\_NuGetItems\icon.png"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
<None Include="..\_NuGetItems\LICENSE.txt"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\README.md" Pack="true" PackagePath="" /> | ||
<None Include="..\_NuGetItems\icon.png" Pack="true" PackagePath="" /> | ||
<None Include="..\_NuGetItems\LICENSE.txt" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="NuGet.Frameworks" Version="6.6.1" /> | ||
<PackageReference Include="Skyline.DataMiner.CICD.FileSystem" Version="1.0.3" /> | ||
<PackageReference Include="Skyline.DataMiner.CICD.Loggers" Version="1.0.3" /> | ||
<PackageReference Include="System.Reflection.Metadata" Version="5.0.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="NuGet.Frameworks" Version="6.6.1" /> | ||
<PackageReference Include="Skyline.DataMiner.CICD.FileSystem" Version="1.0.6" /> | ||
<PackageReference Include="Skyline.DataMiner.CICD.Loggers" Version="1.0.3" /> | ||
<PackageReference Include="System.Reflection.Metadata" Version="5.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<SonarQubeSetting Include="sonar.exclusions"> | ||
<Value>Xml/**, XmlEdit/**</Value> | ||
</SonarQubeSetting> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<SonarQubeSetting Include="sonar.exclusions"> | ||
<Value>Xml/**, XmlEdit/**</Value> | ||
</SonarQubeSetting> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<InternalsVisibleTo Include="Skyline.DataMiner.CICD.Parsers.Protocol" /> | ||
<InternalsVisibleTo Include="Assemblers.AutomationTests" /> | ||
<InternalsVisibleTo Include="Assemblers.ProtocolTests" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<InternalsVisibleTo Include="Skyline.DataMiner.CICD.Parsers.Protocol" /> | ||
<InternalsVisibleTo Include="Assemblers.AutomationTests" /> | ||
<InternalsVisibleTo Include="Assemblers.ProtocolTests" /> | ||
<InternalsVisibleTo Include="Parsers.CommonTests" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
Parsers.CommonTests/VisualStudio/Projects/LegacyStyleParserTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
namespace Parsers.CommonTests.VisualStudio.Projects | ||
{ | ||
using System; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Xml.Linq; | ||
|
||
using FluentAssertions; | ||
|
||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
using Skyline.DataMiner.CICD.Parsers.Common.VisualStudio.Projects; | ||
|
||
[TestClass] | ||
public class LegacyStyleParserTests | ||
{ | ||
[TestMethod] | ||
public void GetCompileFilesTest() | ||
{ | ||
// Arrange | ||
string path = Path.GetFullPath(@".\VisualStudio\TestFiles\ProjectsForTesting\Files\Files_UnknownFile.csproj"); | ||
string projectDir = Path.GetDirectoryName(path); | ||
var xmlContent = File.ReadAllText(path, Encoding.UTF8); | ||
var document = XDocument.Parse(xmlContent); | ||
LegacyStyleParser legacyStyleParser = new LegacyStyleParser(document, projectDir); | ||
|
||
// Act | ||
Action action = () => _ = legacyStyleParser.GetCompileFiles().ToList(); | ||
|
||
// Assert | ||
action.Should().Throw<FileNotFoundException>(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,38 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AssemblyName>Skyline.DataMiner.CICD.Parsers.Protocol</AssemblyName> | ||
<RootNamespace>Skyline.DataMiner.CICD.Parsers.Protocol</RootNamespace> | ||
<GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
<Authors>SkylineCommunications</Authors> | ||
<Company>Skyline Communications</Company> | ||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageProjectUrl>https://skyline.be/</PackageProjectUrl> | ||
<PackageTags>Skyline;DataMiner;CICD</PackageTags> | ||
<Description>Library providing methods to parse DataMiner Protocol XML files.</Description> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<RepositoryUrl>https://github.com/SkylineCommunications/Skyline.DataMiner.CICD.Parsers</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AssemblyName>Skyline.DataMiner.CICD.Parsers.Protocol</AssemblyName> | ||
<RootNamespace>Skyline.DataMiner.CICD.Parsers.Protocol</RootNamespace> | ||
<GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
<Authors>SkylineCommunications</Authors> | ||
<Company>Skyline Communications</Company> | ||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageProjectUrl>https://skyline.be/</PackageProjectUrl> | ||
<PackageTags>Skyline;DataMiner;CICD</PackageTags> | ||
<Description>Library providing methods to parse DataMiner Protocol XML files.</Description> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<RepositoryUrl>https://github.com/SkylineCommunications/Skyline.DataMiner.CICD.Parsers</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\README.md"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
<None Include="..\_NuGetItems\icon.png"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
<None Include="..\_NuGetItems\LICENSE.txt"> | ||
<Pack>True</Pack> | ||
<PackagePath>\</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\README.md" Pack="true" PackagePath="" /> | ||
<None Include="..\_NuGetItems\icon.png" Pack="true" PackagePath="" /> | ||
<None Include="..\_NuGetItems\LICENSE.txt" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Parsers.Common\Parsers.Common.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Parsers.Common\Parsers.Common.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<SonarQubeSetting Include="sonar.exclusions"> | ||
<Value>Xml/**</Value> | ||
</SonarQubeSetting> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<SonarQubeSetting Include="sonar.exclusions"> | ||
<Value>Xml/**</Value> | ||
</SonarQubeSetting> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters