Skip to content
This repository
Browse code

Fixes all tests with semver implementaiton

  • Loading branch information...
commit 44acda1574429bf7e849cab1775cda2c9994c7e0 1 parent 741f4eb
Sebastien Lambla serialseb authored

Showing 118 changed files with 1,378 additions and 480 deletions. Show diff stats Hide diff stats

  1. +1 0  build/common.project.properties
  2. +16 4 openwrap.wrapdesc
  3. +6 6 src/CommonProperties.cs
  4. +0 1  src/OpenRasta.Client/Properties/AssemblyInfo.cs
  5. +0 1  src/OpenWrap.Build.Bootstrap/Properties/AssemblyInfo.cs
  6. +2 2 src/OpenWrap.Build.Tasks/OpenWrap.CSharp.targets
  7. +1 2  src/OpenWrap.Build.Tasks/Properties/AssemblyInfo.cs
  8. +1 2  src/OpenWrap.Commands/Properties/AssemblyInfo.cs
  9. +1 1  src/OpenWrap.Commands/Wrap/AddWrapCommand.cs
  10. +1 1  src/OpenWrap.Hooks/Properties/AssemblyInfo.cs
  11. +0 1  src/OpenWrap.ReSharper.450/Properties/AssemblyInfo.cs
  12. +1 1  src/OpenWrap.ReSharper.500/Properties/AssemblyInfo.cs
  13. +1 1  src/OpenWrap.ReSharper.510/Properties/AssemblyInfo.cs
  14. +1 1  src/OpenWrap.ReSharper.600/Properties/AssemblyInfo.cs
  15. +1 1  src/OpenWrap.ReSharper.610/Properties/AssemblyInfo.cs
  16. +0 1  src/OpenWrap.Testing/Properties/AssemblyInfo.cs
  17. +22 0 src/OpenWrap.Tests/Build/assembly_info/assembly_file_version.cs
  18. +22 0 src/OpenWrap.Tests/Build/assembly_info/assembly_version.cs
  19. +23 0 src/OpenWrap.Tests/Build/assembly_info/author.cs
  20. +43 0 src/OpenWrap.Tests/Build/assembly_info/context_assembly_info.cs
  21. +21 0 src/OpenWrap.Tests/Build/assembly_info/copyright.cs
  22. +2 122 src/OpenWrap.Tests/Build/assembly_info/none.cs
  23. +21 0 src/OpenWrap.Tests/Build/assembly_info/title.cs
  24. +1 1  src/OpenWrap.Tests/Dependencies/trees/resolvig_package_existing_in_local_and_remote.cs
  25. +1 1  src/OpenWrap.Tests/Dependencies/trees/resolving_latest_package_in_system_with_outdated_remote_version.cs
  26. +1 1  src/OpenWrap.Tests/Dependencies/trees/resolving_package_from_remote_repository.cs
  27. +1 1  src/OpenWrap.Tests/Dependencies/trees/resolving_package_from_system_repository.cs
  28. +1 1  src/OpenWrap.Tests/Dependencies/trees/resolving_sub_builds_from_current_directory.cs
  29. +0 1  src/OpenWrap.Tests/Properties/AssemblyInfo.cs
  30. +2 2 src/OpenWrap.Tests/Repositories/indexed_http/reading_the_dynamicproxy_package.cs
  31. +1 1  src/OpenWrap.Tests/Repositories/manager/all_configured_remotes.cs
  32. +6 7 src/OpenWrap.Tests/Repositories/manager/repositories_with_authentication.cs
  33. +1 1  src/OpenWrap.Tests/Repositories/manager/repositories_with_authentication_without_auth_support.cs
  34. +2 1  src/OpenWrap.Tests/Repositories/when_nuking_a_package.cs
  35. +1 0  src/OpenWrap.Tests/Repositories/when_publishing_a_package.cs
  36. +514 0 src/OpenWrap.Tests/Settings.StyleCop
  37. +6 0 src/OpenWrap.Tests/Tests.csproj
  38. +5 5 src/OpenWrap.Tests/openwrap_context.cs
  39. +1 1  src/OpenWrap.VisualStudio.Shared/Properties/AssemblyInfo.cs
  40. +0 1  src/OpenWrap.VisualStudio.SolutionAddIn/Properties/AssemblyInfo.cs
  41. +1 1  src/OpenWrap.VisualStudio.SolutionPlugins/Properties/AssemblyInfo.cs
  42. +0 1  src/OpenWrap.Windows/Properties/AssemblyInfo.cs
  43. +19 17 src/OpenWrap/Build/AssemblyInfoGenerator.cs
  44. +4 0 src/OpenWrap/Collections/EnumerableExtensions.cs
  45. +7 0 src/OpenWrap/DictionaryExtensions.cs
  46. +3 1 src/OpenWrap/IO/Packaging/Packager.cs
  47. +4 2 src/OpenWrap/OpenWrap.csproj
  48. +10 8 src/OpenWrap/PackageManagement/DefaultPackageManager.cs
  49. +5 2 src/OpenWrap/PackageManagement/DependencyResolvers/DependencyResolutionResult.cs
  50. +1 0  src/OpenWrap/PackageManagement/DependencyResolvers/DependencyVisitor.cs
  51. +212 5 src/OpenWrap/PackageManagement/DependencyResolvers/DependencyVisitor2.cs
  52. +51 0 src/OpenWrap/PackageManagement/DependencyResolvers/ExhaustiveResolver.cs
  53. +4 4 src/OpenWrap/PackageManagement/DependencyResolvers/PackageSelectionContext.cs
  54. +1 0  src/OpenWrap/PackageManagement/Packages/InMemoryPackage.cs
  55. +13 12 src/OpenWrap/PackageManagement/Packages/UncompressedPackage.cs
  56. +16 33 src/OpenWrap/PackageManagement/Packages/ZipFilePackage.cs
  57. +0 93 src/OpenWrap/PackageModel/DefaultPackageInfo.cs
  58. +1 1  src/OpenWrap/PackageModel/IPackageDescriptor.cs
  59. +4 2 src/OpenWrap/PackageModel/IPackageInfo.cs
  60. +29 9 src/OpenWrap/PackageModel/PackageDescriptor.cs
  61. +1 1  src/OpenWrap/PackageModel/Parsers/SingleDateTimeOffsetValue.cs
  62. +37 0 src/OpenWrap/PackageModel/Parsers/SingleSemanticVersionValue.cs
  63. +0 21 src/OpenWrap/PackageModel/Parsers/SingleVersionValue.cs
  64. +3 4 src/OpenWrap/PackageModel/ScopedPackageDescriptor.cs
  65. +1 2  src/OpenWrap/Properties/AssemblyInfo.cs
  66. +2 1  src/OpenWrap/Repositories/DefaultRemoteManager.cs
  67. +5 2 src/OpenWrap/Repositories/FileSystem/FileSystemNavigator.cs
  68. +5 0 src/OpenWrap/Repositories/Http/HttpRepositoryNavigator.cs
  69. +5 1 src/OpenWrap/Repositories/Http/IndexedHttpRepository.cs
  70. +4 3 src/OpenWrap/Repositories/Http/RequestExtensions.cs
  71. +2 0  src/OpenWrap/Repositories/ISupportAuthentication.cs
  72. +5 0 src/OpenWrap/Repositories/ISupportCurrentCredentials.cs
  73. +9 5 src/OpenWrap/Repositories/InMemoryRepository.cs
  74. +4 4 src/OpenWrap/Repositories/NuFeed/NuFeedRepository.cs
  75. +5 0 src/OpenWrap/Repositories/NullAuthentication.cs
  76. +5 4 src/OpenWrap/Repositories/PreauthenticatedRepository.cs
  77. +0 1  src/OpenWrap/SemanticVersion.cs
  78. +9 0 src/OpenWrap/Settings.StyleCop
  79. +10 0 src/OpenWrap/VersionExtensions.cs
  80. +25 13 src/Settings.StyleCop
  81. +0 1  src/Tests.VisualStudio/Properties/AssemblyInfo.cs
  82. +1 0  todo.txt
  83. +1 1  version
  84. BIN  wraps/openwrap-2.0.2.87978029.wrap
  85. BIN  wraps/openwrap-2.0.3+0.wrap
  86. BIN  wraps/openwrap-2.0.3+121.wrap
  87. BIN  wraps/openwrap-2.0.3+84.wrap
  88. BIN  wraps/openwrap/bin-net35/OpenRasta.Client.dll
  89. BIN  wraps/openwrap/bin-net35/OpenRasta.Client.pdb
  90. BIN  wraps/openwrap/bin-net35/OpenWrap.VisualStudio.Shared.dll
  91. BIN  wraps/openwrap/bin-net35/OpenWrap.VisualStudio.Shared.pdb
  92. BIN  wraps/openwrap/bin-net35/OpenWrap.VisualStudio.SolutionAddIn.dll
  93. BIN  wraps/openwrap/bin-net35/OpenWrap.VisualStudio.SolutionAddIn.pdb
  94. BIN  wraps/openwrap/bin-net35/OpenWrap.dll
  95. BIN  wraps/openwrap/bin-net35/OpenWrap.pdb
  96. BIN  wraps/openwrap/build/OpenWrap.Build.Bootstrap.dll
  97. BIN  wraps/openwrap/build/OpenWrap.Build.Bootstrap.pdb
  98. BIN  wraps/openwrap/build/OpenWrap.Build.Tasks.dll
  99. BIN  wraps/openwrap/build/OpenWrap.Build.Tasks.pdb
  100. +103 46 wraps/openwrap/build/OpenWrap.CSharp.targets
  101. BIN  wraps/openwrap/commands-net35/OpenWrap.Commands.dll
  102. BIN  wraps/openwrap/commands-net35/OpenWrap.Commands.pdb
  103. BIN  wraps/openwrap/commands-net35/OpenWrap.Testing.dll
  104. BIN  wraps/openwrap/commands-net35/OpenWrap.Testing.pdb
  105. +19 5 wraps/openwrap/openwrap.wrapdesc
  106. BIN  wraps/openwrap/solution/OpenWrap.Resharper.450.dll
  107. BIN  wraps/openwrap/solution/OpenWrap.Resharper.450.pdb
  108. BIN  wraps/openwrap/solution/OpenWrap.Resharper.500.dll
  109. BIN  wraps/openwrap/solution/OpenWrap.Resharper.500.pdb
  110. BIN  wraps/openwrap/solution/OpenWrap.Resharper.510.dll
  111. BIN  wraps/openwrap/solution/OpenWrap.Resharper.510.pdb
  112. BIN  wraps/openwrap/solution/OpenWrap.Resharper.600.dll
  113. BIN  wraps/openwrap/solution/OpenWrap.Resharper.600.pdb
  114. BIN  wraps/openwrap/solution/OpenWrap.Resharper.610.dll
  115. BIN  wraps/openwrap/solution/OpenWrap.Resharper.610.pdb
  116. BIN  wraps/openwrap/solution/OpenWrap.SolutionPlugins.VisualStudio.dll
  117. BIN  wraps/openwrap/solution/OpenWrap.SolutionPlugins.VisualStudio.pdb
  118. +1 1  wraps/openwrap/version
1  build/common.project.properties
@@ -3,6 +3,7 @@
3 3 <PropertyGroup>
4 4 <OutputPath Condition="'$(OutputPath)' == ''">..\..\scratch\bin\$(MSBuildProjectName)-$(Configuration)-$(Platform)</OutputPath>
5 5 <IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">..\..\scratch\obj\$(MSBuildProjectName)-$(Configuration)-$(Platform)</IntermediateOutputPath>
  6 + <NoWarn>1591</NoWarn>
6 7 </PropertyGroup>
7 8 <ItemGroup>
8 9 <Compile Include="..\CommonProperties.cs">
20 openwrap.wrapdesc
... ... @@ -1,13 +1,25 @@
1 1 depends: sharpziplib = 0.86
2 2 depends: openwrap content >= 2.0 and < 3.0
  3 +depends: Mono.Cecil = 0.9.4
  4 +depends: tdnet-framework
  5 +depends: openfilesystem = 1.0.1
3 6 anchored: true
4   -build: msbuild; profile=net35; project=src\OpenWrap\OpenWrap.csproj; project=src\OpenWrap.VisualStudio.Shared\OpenWrap.VisualStudio.Shared.csproj; project=src\OpenWrap.Build.Tasks\OpenWrap.Build.Tasks.csproj; project=src\OpenWrap.Commands\OpenWrap.Commands.csproj; project=src\OpenWrap.VisualStudio.SolutionPlugins\OpenWrap.SolutionPlugins.VisualStudio.csproj;
  7 +build: msbuild; profile=net35; project=src\OpenWrap\OpenWrap.csproj; project=src\OpenWrap.VisualStudio.Shared\OpenWrap.VisualStudio.Shared.csproj; project=src\OpenWrap.Build.Tasks\OpenWrap.Build.Tasks.csproj; project=src\OpenWrap.Commands\OpenWrap.Commands.csproj; project=src\OpenWrap.VisualStudio.SolutionPlugins\OpenWrap.SolutionPlugins.VisualStudio.csproj
5 8 #CreateHardLinksForAdditionalFilesIfPossible=true;CreateHardLinksForCopyAdditionalFilesIfPossible=true;CreateHardLinksForCopyFilesToOutputDirectoryIfPossible=true;CreateHardLinksForCopyLocalIfPossible=true;CreateHardLinksForPublishFilesIfPossible=true;BuildInParallel=true;
6 9 name: openwrap
7 10 title: OpenWrap Package Manager
8   -depends: tdnet-framework
9 11 use-symlinks: true
10   -depends: Mono.Cecil = 0.9.4
11 12 directory-structure: src\*{scope: Tests=tests}*\**
12 13 directory-structure: src\{scope: Tests.VisualStudio=tests}\**
13   -depends: openfilesystem = 1.0.1
  14 +trademark: OpenWrap is a trademark of naughtyProd Limited 2010-2012
  15 +author: Sebastien Lambla <seb@serialseb.com>
  16 +copyright: © 2010-2012 naughtyProd Limited & Sebastien Lambla
  17 +description: OpenWrap is an Open-Source dependency manager for .net platforms.
  18 +assembly-info: author
  19 +assembly-info: copyright
  20 +assembly-info: assembly-version
  21 +assembly-info: file-version
  22 +assembly-info: assembly-info
  23 +assembly-info: build
  24 +assembly-info: description
  25 +assembly-info: trademark
12 src/CommonProperties.cs
... ... @@ -1,7 +1,7 @@
1   -[assembly: System.Reflection.AssemblyCompany("Caffeine IT / naughtyProd Limited")]
2   -[assembly: System.Reflection.AssemblyProduct("OpenWrap package management")]
3   -[assembly: System.Reflection.AssemblyCopyright("Copyright � naughtyProd Limited 2009-2011")]
4   -[assembly: System.Reflection.AssemblyTrademark("")]
  1 +//[assembly: System.Reflection.AssemblyCompany("Caffeine IT / naughtyProd Limited")]
  2 +//[assembly: System.Reflection.AssemblyProduct("OpenWrap package management")]
  3 +//[assembly: System.Reflection.AssemblyCopyright("Copyright � naughtyProd Limited 2009-2011")]
  4 +//[assembly: System.Reflection.AssemblyTrademark("")]
5 5 [assembly: System.Reflection.AssemblyCulture("")]
6   -[assembly: System.Reflection.AssemblyVersion("2.0.0.*")]
7   -[assembly: System.Reflection.AssemblyFileVersion("2.0.0.1")]
  6 +//[assembly: System.Reflection.AssemblyVersion("2.0.0.*")]
  7 +//[assembly: System.Reflection.AssemblyFileVersion("2.0.0.1")]
1  src/OpenRasta.Client/Properties/AssemblyInfo.cs
@@ -6,4 +6,3 @@
6 6 // set of attributes. Change these attribute values to modify the information
7 7 // associated with an assembly.
8 8 [assembly: AssemblyTitle("OpenRasta.Client")]
9   -[assembly: AssemblyDescription("")]
1  src/OpenWrap.Build.Bootstrap/Properties/AssemblyInfo.cs
@@ -6,4 +6,3 @@
6 6 // set of attributes. Change these attribute values to modify the information
7 7 // associated with an assembly.
8 8 [assembly: AssemblyTitle("OpenWrap.Build.Bootstrap")]
9   -[assembly: AssemblyDescription("")]
4 src/OpenWrap.Build.Tasks/OpenWrap.CSharp.targets
@@ -39,7 +39,7 @@
39 39 <OpenWrap-IncludeContentFiles Condition="'$(OpenWrap-IncludeContentFiles)' == ''">false</OpenWrap-IncludeContentFiles>
40 40
41 41 <_OpenWrap-GenerateSharedAssemblyInfo>False</_OpenWrap-GenerateSharedAssemblyInfo>
42   - <_OpenWrap-GenerateSharedAssemblyInfo Condition="Exists('$(OpenWrap-SharedAssemblyInfoFile)') == True">True</_OpenWrap-GenerateSharedAssemblyInfo>
  42 + <_OpenWrap-GenerateSharedAssemblyInfo Condition="Exists('$(OpenWrap-SharedAssemblyInfoFile)')">False</_OpenWrap-GenerateSharedAssemblyInfo>
43 43 </PropertyGroup>
44 44
45 45 <Target Name="OpenWrap-Initialize">
@@ -70,7 +70,7 @@
70 70
71 71 <Target Name="OpenWrap-ResolveReferences" DependsOnTargets="OpenWrap-Initialize">
72 72
73   - <ItemGroup Condition="'$(OpenWrap-SharedAssemblyInfoFile)' != ''">
  73 + <ItemGroup Condition="Exists('$(OpenWrap-SharedAssemblyInfoFile)')">
74 74 <Compile Include="$(OpenWrap-SharedAssemblyInfoFile)" />
75 75 </ItemGroup>
76 76 <ResolveWrapReferences
3  src/OpenWrap.Build.Tasks/Properties/AssemblyInfo.cs
@@ -2,5 +2,4 @@
2 2 using System.Runtime.CompilerServices;
3 3 using System.Runtime.InteropServices;
4 4
5   -[assembly: AssemblyTitle("OpenWrap MSBuild tasks")]
6   -[assembly: AssemblyDescription("Provides MSBuild intergration for OpenWrap")]
  5 +[assembly: AssemblyTitle("OpenWrap MSBuild tasks")]
3  src/OpenWrap.Commands/Properties/AssemblyInfo.cs
@@ -2,5 +2,4 @@
2 2 using System.Runtime.CompilerServices;
3 3 using System.Runtime.InteropServices;
4 4
5   -[assembly: AssemblyTitle("OpenWrap commands")]
6   -[assembly: AssemblyDescription("All commands in the wrap and help namespace")]
  5 +[assembly: AssemblyTitle("OpenWrap commands")]
2  src/OpenWrap.Commands/Wrap/AddWrapCommand.cs
@@ -108,7 +108,7 @@ protected override IEnumerable<ICommandOutput> ExecuteCore()
108 108 yield return VerifyProjectRepository();
109 109
110 110 yield return SetupEnvironmentForAdd();
111   - var sourceRepositories = GetSourceRepositories();
  111 + var sourceRepositories = GetSourceRepositories().ToList();
112 112
113 113 var descriptor = new PackageDescriptor(_targetDescriptor.Value);
114 114 if (Project && System)
2  src/OpenWrap.Hooks/Properties/AssemblyInfo.cs
@@ -6,7 +6,7 @@
6 6 // set of attributes. Change these attribute values to modify the information
7 7 // associated with an assembly.
8 8 [assembly: AssemblyTitle("OpenWrap.Hooks")]
9   -[assembly: AssemblyDescription("")]
  9 +
10 10 [assembly: AssemblyConfiguration("")]
11 11 [assembly: AssemblyCompany("Microsoft")]
12 12 [assembly: AssemblyProduct("OpenWrap.Hooks")]
1  src/OpenWrap.ReSharper.450/Properties/AssemblyInfo.cs
@@ -4,4 +4,3 @@
4 4 using System.Runtime.InteropServices;
5 5
6 6 [assembly: AssemblyTitle("OpenWrap Resharper 4.5 support")]
7   -[assembly: AssemblyDescription("")]
2  src/OpenWrap.ReSharper.500/Properties/AssemblyInfo.cs
@@ -3,6 +3,6 @@
3 3 using System.Runtime.InteropServices;
4 4
5 5 [assembly: AssemblyTitle("OpenWrap.Resharper.50")]
6   -[assembly: AssemblyDescription("")]
  6 +
7 7 [assembly: ComVisible(false)]
8 8 [assembly: Guid("ffb5e9f7-fce2-41db-aeef-0e107ea07cd2")]
2  src/OpenWrap.ReSharper.510/Properties/AssemblyInfo.cs
@@ -4,6 +4,6 @@
4 4
5 5
6 6 [assembly: AssemblyTitle("OpenWrap.Resharper.50")]
7   -[assembly: AssemblyDescription("")]
  7 +
8 8 [assembly: ComVisible(false)]
9 9 [assembly: Guid("ffb5e9f7-fce2-41db-aeef-0e107ea07cd2")]
2  src/OpenWrap.ReSharper.600/Properties/AssemblyInfo.cs
@@ -3,6 +3,6 @@
3 3 using System.Runtime.InteropServices;
4 4
5 5 [assembly: AssemblyTitle("OpenWrap.Resharper.600")]
6   -[assembly: AssemblyDescription("")]
  6 +
7 7 [assembly: ComVisible(false)]
8 8 [assembly: Guid("e103bfe8-0d9b-4858-aafd-60b4c202e2c2")]
2  src/OpenWrap.ReSharper.610/Properties/AssemblyInfo.cs
@@ -3,6 +3,6 @@
3 3 using System.Runtime.InteropServices;
4 4
5 5 [assembly: AssemblyTitle("OpenWrap.Resharper.610")]
6   -[assembly: AssemblyDescription("")]
  6 +
7 7 [assembly: ComVisible(false)]
8 8 [assembly: Guid("125b025d-b1d1-4c74-88c8-eff676a6d64a")]
1  src/OpenWrap.Testing/Properties/AssemblyInfo.cs
@@ -3,4 +3,3 @@
3 3 using System.Runtime.InteropServices;
4 4
5 5 [assembly: AssemblyTitle("OpenWrap.Testing")]
6   -[assembly: AssemblyDescription("")]
22 src/OpenWrap.Tests/Build/assembly_info/assembly_file_version.cs
... ... @@ -0,0 +1,22 @@
  1 +using System.Reflection;
  2 +using NUnit.Framework;
  3 +
  4 +namespace Tests.Build.assembly_info
  5 +{
  6 + public class assembly_file_version : context_assembly_info
  7 + {
  8 + public assembly_file_version()
  9 + {
  10 + given_descriptor(
  11 + "version: 1.0.0." + ushort.MaxValue,
  12 + "assembly-info: file-version");
  13 + when_generating_assembly_info();
  14 + }
  15 + [Test]
  16 + public void contains_attribute()
  17 + {
  18 + should_have<AssemblyFileVersionAttribute>(
  19 + "1.0.0.65535");
  20 + }
  21 + }
  22 +}
22 src/OpenWrap.Tests/Build/assembly_info/assembly_version.cs
... ... @@ -0,0 +1,22 @@
  1 +using System.Reflection;
  2 +using NUnit.Framework;
  3 +
  4 +namespace Tests.Build.assembly_info
  5 +{
  6 + public class assembly_version : context_assembly_info
  7 + {
  8 + public assembly_version()
  9 + {
  10 + given_descriptor(
  11 + "version: 1.0.0." + ushort.MaxValue,
  12 + "assembly-info: assembly-version");
  13 + when_generating_assembly_info();
  14 + }
  15 + [Test]
  16 + public void contains_attribute()
  17 + {
  18 + should_have<AssemblyVersionAttribute>(
  19 + "1.0.0.0");
  20 + }
  21 + }
  22 +}
23 src/OpenWrap.Tests/Build/assembly_info/author.cs
... ... @@ -0,0 +1,23 @@
  1 +using System.Reflection;
  2 +using NUnit.Framework;
  3 +
  4 +namespace Tests.Build.assembly_info
  5 +{
  6 + public class author : context_assembly_info
  7 + {
  8 + public author()
  9 + {
  10 + given_descriptor(
  11 + "author: sauron <sauron@middle.earth>",
  12 + "author: frodo <frodo@middle.earth>",
  13 + "assembly-info: author");
  14 + when_generating_assembly_info();
  15 + }
  16 + [Test]
  17 + public void contains_attribute()
  18 + {
  19 + should_have<AssemblyCompanyAttribute>(
  20 + "sauron <sauron@middle.earth>, frodo <frodo@middle.earth>");
  21 + }
  22 + }
  23 +}
43 src/OpenWrap.Tests/Build/assembly_info/context_assembly_info.cs
... ... @@ -0,0 +1,43 @@
  1 +using OpenFileSystem.IO;
  2 +using OpenFileSystem.IO.FileSystems.InMemory;
  3 +using OpenWrap;
  4 +using OpenWrap.Build;
  5 +using OpenWrap.PackageModel;
  6 +using OpenWrap.PackageModel.Serialization;
  7 +using OpenWrap.Testing;
  8 +
  9 +namespace Tests.Build.assembly_info
  10 +{
  11 + public class context_assembly_info : context
  12 + {
  13 + const string ATTRIBUTE_TEXT = "[assembly: {0}(\"{1}\")]";
  14 + protected IFile assembly_info_file;
  15 + IPackageDescriptor descriptor;
  16 + InMemoryFileSystem file_system;
  17 + protected string assembly_info_content;
  18 +
  19 + public context_assembly_info()
  20 + {
  21 + file_system = new InMemoryFileSystem();
  22 + assembly_info_file = file_system.GetTempDirectory().GetFile("GeneratedAssemblyinfo.cs");
  23 + }
  24 + protected void when_generating_assembly_info()
  25 + {
  26 + var generator = new AssemblyInfoGenerator(descriptor);
  27 + generator.Write(assembly_info_file);
  28 + assembly_info_content = generator.ToString();
  29 + }
  30 +
  31 + protected void given_descriptor(params string[] lines)
  32 + {
  33 + descriptor = new PackageDescriptorReader()
  34 + .Read(lines.JoinString("\r\n").ToUTF8Stream());
  35 + }
  36 + protected void should_have<T>(string value)
  37 + {
  38 + assembly_info_content.ShouldContain(
  39 + string.Format(ATTRIBUTE_TEXT, typeof(T).FullName, value)
  40 + );
  41 + }
  42 + }
  43 +}
21 src/OpenWrap.Tests/Build/assembly_info/copyright.cs
... ... @@ -0,0 +1,21 @@
124 src/OpenWrap.Tests/Build/assembly_info/none.cs
... ... @@ -1,16 +1,9 @@
1   -using System.Reflection;
2   -using NUnit.Framework;
3   -using OpenFileSystem.IO;
4   -using OpenFileSystem.IO.FileSystems.InMemory;
5   -using OpenWrap;
6   -using OpenWrap.Build;
7   -using OpenWrap.PackageModel;
8   -using OpenWrap.PackageModel.Serialization;
  1 +using NUnit.Framework;
9 2 using OpenWrap.Testing;
10 3
11 4 namespace Tests.Build.assembly_info
12 5 {
13   - public class none :context_assembly_info
  6 + public class none : context_assembly_info
14 7 {
15 8 public none()
16 9 {
@@ -24,117 +17,4 @@ public void no_file_generated()
24 17 assembly_info_file.Exists.ShouldBeFalse();
25 18 }
26 19 }
27   - public class copyright : context_assembly_info
28   - {
29   - public copyright()
30   - {
31   - given_descriptor(
32   - "copyright: Tolkien",
33   - "assembly-info: copyright");
34   - when_generating_assembly_info();
35   - }
36   - [Test]
37   - public void contains_attribute()
38   - {
39   - should_have<AssemblyCopyrightAttribute>("Tolkien");
40   - }
41   - }
42   -
43   - public class assembly_file_version : context_assembly_info
44   - {
45   - public assembly_file_version()
46   - {
47   - given_descriptor(
48   - "version: 1.0.0." + ushort.MaxValue,
49   - "assembly-info: file-version");
50   - when_generating_assembly_info();
51   - }
52   - [Test]
53   - public void contains_attribute()
54   - {
55   - should_have<AssemblyFileVersionAttribute>(
56   - "1.0.0.65535");
57   - }
58   - }
59   - public class assembly_version : context_assembly_info
60   - {
61   - public assembly_version()
62   - {
63   - given_descriptor(
64   - "version: 1.0.0." + ushort.MaxValue,
65   - "assembly-info: assembly-version");
66   - when_generating_assembly_info();
67   - }
68   - [Test]
69   - public void contains_attribute()
70   - {
71   - should_have<AssemblyVersionAttribute>(
72   - "1.0.0.0");
73   - }
74   - }
75   - public class author : context_assembly_info
76   - {
77   - public author()
78   - {
79   - given_descriptor(
80   - "author: sauron <sauron@middle.earth>",
81   - "author: frodo <frodo@middle.earth>",
82   - "assembly-info: author");
83   - when_generating_assembly_info();
84   - }
85   - [Test]
86   - public void contains_attribute()
87   - {
88   - should_have<AssemblyCompanyAttribute>(
89   - "sauron <sauron@middle.earth>, frodo <frodo@middle.earth>");
90   - }
91   - }
92   - public class title : context_assembly_info
93   - {
94   - public title()
95   - {
96   - given_descriptor(
97   - "title: The lord of the rings",
98   - "assembly-info: title");
99   - when_generating_assembly_info();
100   - }
101   - [Test]
102   - public void contains_attribute()
103   - {
104   - should_have<AssemblyProductAttribute>("The lord of the rings");
105   - }
106   - }
107   -
108   - public class context_assembly_info : context
109   - {
110   - const string ATTRIBUTE_TEXT = "[assembly: {0}(\"{1}\")]";
111   - protected IFile assembly_info_file;
112   - IPackageDescriptor descriptor;
113   - InMemoryFileSystem file_system;
114   - protected string assembly_info_content;
115   -
116   - public context_assembly_info()
117   - {
118   - file_system = new InMemoryFileSystem();
119   - assembly_info_file = file_system.GetTempDirectory().GetFile("GeneratedAssemblyinfo.cs");
120   - }
121   - protected void when_generating_assembly_info()
122   - {
123   - var generator = new AssemblyInfoGenerator(descriptor);
124   - generator.Write(assembly_info_file);
125   - assembly_info_content = generator.ToString();
126   - }
127   -
128   - protected void given_descriptor(params string[] lines)
129   - {
130   - descriptor = new PackageDescriptorReader()
131   - .Read(lines.JoinString("\r\n").ToUTF8Stream());
132   - }
133   - protected void should_have<T>(string value)
134   - {
135   - assembly_info_content.ShouldContain(
136   - string.Format(ATTRIBUTE_TEXT, typeof(T).FullName, value)
137   - );
138   - }
139   - }
140 20 }
21 src/OpenWrap.Tests/Build/assembly_info/title.cs
... ... @@ -0,0 +1,21 @@
  1 +using System.Reflection;
  2 +using NUnit.Framework;
  3 +
  4 +namespace Tests.Build.assembly_info
  5 +{
  6 + public class title : context_assembly_info
  7 + {
  8 + public title()
  9 + {
  10 + given_descriptor(
  11 + "title: The lord of the rings",
  12 + "assembly-info: title");
  13 + when_generating_assembly_info();
  14 + }
  15 + [Test]
  16 + public void contains_attribute()
  17 + {
  18 + should_have<AssemblyProductAttribute>("The lord of the rings");
  19 + }
  20 + }
  21 +}
2  src/OpenWrap.Tests/Dependencies/trees/resolvig_package_existing_in_local_and_remote.cs
@@ -24,7 +24,7 @@ public void finds_highest_version_number_across_repositories()
24 24 var dependency = Resolve.SuccessfulPackages.First();
25 25
26 26 dependency.Packages.ShouldNotBeEmpty().First()
27   - .Source.ShouldBe(RemoteRepository);
  27 + .Source.Token.ShouldBe(RemoteRepository.Token);
28 28 dependency.Packages.ShouldNotBeEmpty()
29 29 .First().SemanticVersion.ShouldBe("1.1.0");
30 30 }
2  src/OpenWrap.Tests/Dependencies/trees/resolving_latest_package_in_system_with_outdated_remote_version.cs
@@ -29,7 +29,7 @@ public void the_package_is_installed_from_system()
29 29 {
30 30 Resolve.SuccessfulPackages.ShouldHaveCountOf(1)
31 31 .First()
32   - .Check(x => x.Packages.First().Source.ShouldBe(SystemRepository))
  32 + .Check(x => x.Packages.First().Source.Token.ShouldBe(SystemRepository.Token))
33 33 .Check(x => x.Packages.First().SemanticVersion.ShouldBe("1.0.0.1"));
34 34 }
35 35 }
2  src/OpenWrap.Tests/Dependencies/trees/resolving_package_from_remote_repository.cs
@@ -21,7 +21,7 @@ public void dependency_on_remote_package_is_resolved()
21 21 Resolve.IsSuccess.ShouldBeTrue();
22 22 Resolve.SuccessfulPackages.First().Packages.ShouldNotBeEmpty()
23 23 .First()
24   - .Source.ShouldBe(RemoteRepository);
  24 + .Source.Token.ShouldBe(RemoteRepository.Token);
25 25 }
26 26 }
27 27 }
2  src/OpenWrap.Tests/Dependencies/trees/resolving_package_from_system_repository.cs
@@ -20,7 +20,7 @@ public void system_package_is_resolved()
20 20 {
21 21 Resolve.IsSuccess.ShouldBeTrue();
22 22 Resolve.SuccessfulPackages.First().Packages.ShouldNotBeEmpty()
23   - .First().Source.ShouldBe(SystemRepository);
  23 + .First().Source.Token.ShouldBe(SystemRepository.Token);
24 24 }
25 25 }
26 26 }
2  src/OpenWrap.Tests/Dependencies/trees/resolving_sub_builds_from_current_directory.cs
@@ -21,7 +21,7 @@ public void package_found_from_current_directory()
21 21 {
22 22 Resolve.SuccessfulPackages.Where(x => x.Identifier.Name == "rings-of-power")
23 23 .ShouldHaveCountOf(1)
24   - .First().Packages.First().Source.ShouldBe(CurrentDirectoryRepository);
  24 + .First().Packages.First().Source.Token.ShouldBe(CurrentDirectoryRepository.Token);
25 25 }
26 26
27 27 }
1  src/OpenWrap.Tests/Properties/AssemblyInfo.cs
@@ -3,4 +3,3 @@
3 3 using System.Runtime.InteropServices;
4 4
5 5 [assembly: AssemblyTitle("OpenWrap tests")]
6   -[assembly: AssemblyDescription("")]
4 src/OpenWrap.Tests/Repositories/indexed_http/reading_the_dynamicproxy_package.cs
... ... @@ -1,6 +1,7 @@
1 1 using System;
2 2 using System.Linq;
3 3 using NUnit.Framework;
  4 +using OpenWrap;
4 5 using OpenWrap.PackageModel;
5 6 using OpenWrap.Testing;
6 7
@@ -14,7 +15,6 @@ public reading_the_dynamicproxy_package()
14 15 {
15 16 given_repository();
16 17 castle_proxy = Repository.PackagesByName["castle-dynamicproxy"].First();
17   -
18 18 }
19 19
20 20 [Test]
@@ -24,7 +24,7 @@ public void has_the_correct_name()
24 24 }
25 25 [Test]public void has_the_correct_version()
26 26 {
27   - castle_proxy.SemanticVersion.ShouldBe("2.1.0");
  27 + castle_proxy.Version.ShouldBe("2.1.0".ToVersion());
28 28 }
29 29 [Test]
30 30 public void has_the_correct_dependencies()
2  src/OpenWrap.Tests/Repositories/manager/all_configured_remotes.cs
@@ -37,7 +37,7 @@ public void fetch_repo_built()
37 37 public void publish_repo_built()
38 38 {
39 39 PublishRepositories.ShouldHaveAtLeastOne().First()
40   - .Check(_ => _.Name.ShouldBe("somewhere"))
  40 + .Check(_ => _.Name.ShouldBe("iron-hills - somewhere"))
41 41 .Check(_ => _.Token.ShouldBe("[memory]somewhere"))
42 42 .Feature<ISupportPublishing>().ShouldNotBeNull();
43 43 }
13 src/OpenWrap.Tests/Repositories/manager/repositories_with_authentication.cs
@@ -20,8 +20,8 @@ public repositories_with_authentication()
20 20 [Test]
21 21 public void repository_has_authentication()
22 22 {
23   - FetchRepositories.Single().ShouldBeOfType<PreAuthenticatedRepository>()
24   - .Credentials
  23 + FetchRepositories.Single().Feature<ISupportAuthentication>()
  24 + .CurrentCredentials
25 25 .Check(_ => _.UserName.ShouldBe("sauron"))
26 26 .Check(_ => _.Password.ShouldBe("itsmyprecious"));
27 27 }
@@ -29,15 +29,14 @@ public void repository_has_authentication()
29 29 [Test]
30 30 public void repository_supports_credentials_override()
31 31 {
32   - var repo = FetchRepositories.OfType<PreAuthenticatedRepository>().Single();
33   - var auth = repo.Feature<ISupportAuthentication>()
34   - .WithCredentials(new NetworkCredential("saruman", "impersonator"));
35   - repo.Credentials
  32 + var repo = FetchRepositories.Single().Feature<ISupportAuthentication>();
  33 + var auth = repo.WithCredentials(new NetworkCredential("saruman", "impersonator"));
  34 + repo.CurrentCredentials
36 35 .Check(_ => _.UserName.ShouldBe("saruman"))
37 36 .Check(_ => _.Password.ShouldBe("impersonator"));
38 37
39 38 auth.Dispose();
40   - repo.Credentials
  39 + repo.CurrentCredentials
41 40 .Check(_ => _.UserName.ShouldBe("sauron"))
42 41 .Check(_ => _.Password.ShouldBe("itsmyprecious"));
43 42 }
2  src/OpenWrap.Tests/Repositories/manager/repositories_with_authentication_without_auth_support.cs
@@ -18,7 +18,7 @@ public repositories_with_authentication_without_auth_support()
18 18 [Test]
19 19 public void repository_has_no_authentication()
20 20 {
21   - FetchRepositories.Single().ShouldBeOfType<InMemoryRepository>();
  21 + FetchRepositories.Single().Feature<ISupportAuthentication>().ShouldBeNull();
22 22 }
23 23 }
24 24 }
3  src/OpenWrap.Tests/Repositories/when_nuking_a_package.cs
@@ -20,7 +20,8 @@ public void index_document_contains_nuked_attribute()
20 20 {
21 21 (from XElement node in IndexDocument.Descendants("wrap")
22 22 where node.Attribute("name").Value.Equals("pharrell") &&
23   - node.Attribute("version").Value.Equals("1.0.0+0") &&
  23 + node.Attribute("version").Value.Equals("1.0.0.0") &&
  24 + node.Attribute("semantic-version").Value.Equals("1.0.0.0") &&
24 25 node.Attribute("nuked").Value.Equals("true")
25 26 select node)
26 27 .ShouldHaveCountOf(1);
1  src/OpenWrap.Tests/Repositories/when_publishing_a_package.cs
@@ -33,6 +33,7 @@ public void index_file_contains_package()
33 33 package.ShouldNotBeNull();
34 34 package.Attribute("name").ShouldNotBeNull().Value.ShouldBe("isengard");
35 35 package.Attribute("version").ShouldNotBeNull().Value.ShouldBe("2.1");
  36 + package.Attribute("semantic-version").ShouldNotBeNull().Value.ShouldBe("2.1");
36 37 var link = package.Descendants("link").FirstOrDefault().ShouldNotBeNull();
37 38 link.Attribute("href").ShouldNotBeNull().Value.ShouldNotBeNull().ShouldContain("isengard-2.1.wrap");
38 39 }
514 src/OpenWrap.Tests/Settings.StyleCop
... ... @@ -0,0 +1,514 @@
  1 +<StyleCopSettings Version="105">
  2 + <Analyzers>
  3 + <Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
  4 + <Rules>
  5 + <Rule Name="InheritDocMustBeUsedWithInheritingClass">
  6 + <RuleSettings>
  7 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  8 + </RuleSettings>
  9 + </Rule>
  10 + <Rule Name="FileHeaderFileNameDocumentationMustMatchTypeName">
  11 + <RuleSettings>
  12 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  13 + </RuleSettings>
  14 + </Rule>
  15 + </Rules>
  16 + <AnalyzerSettings />
  17 + </Analyzer>
  18 + <Analyzer AnalyzerId="StyleCop.CSharp.LayoutRules">
  19 + <Rules>
  20 + <Rule Name="CurlyBracketsForMultiLineStatementsMustNotShareLine">
  21 + <RuleSettings>
  22 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  23 + </RuleSettings>
  24 + </Rule>
  25 + <Rule Name="AllAccessorsMustBeMultiLineOrSingleLine">
  26 + <RuleSettings>
  27 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  28 + </RuleSettings>
  29 + </Rule>
  30 + <Rule Name="CodeMustNotContainMultipleBlankLinesInARow">
  31 + <RuleSettings>
  32 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  33 + </RuleSettings>
  34 + </Rule>
  35 + <Rule Name="ClosingCurlyBracketsMustNotBePrecededByBlankLine">
  36 + <RuleSettings>
  37 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  38 + </RuleSettings>
  39 + </Rule>
  40 + <Rule Name="OpeningCurlyBracketsMustNotBePrecededByBlankLine">
  41 + <RuleSettings>
  42 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  43 + </RuleSettings>
  44 + </Rule>
  45 + <Rule Name="ChainedStatementBlocksMustNotBePrecededByBlankLine">
  46 + <RuleSettings>
  47 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  48 + </RuleSettings>
  49 + </Rule>
  50 + <Rule Name="WhileDoFooterMustNotBePrecededByBlankLine">
  51 + <RuleSettings>
  52 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  53 + </RuleSettings>
  54 + </Rule>
  55 + <Rule Name="SingleLineCommentsMustNotBeFollowedByBlankLine">
  56 + <RuleSettings>
  57 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  58 + </RuleSettings>
  59 + </Rule>
  60 + <Rule Name="ElementDocumentationHeaderMustBePrecededByBlankLine">
  61 + <RuleSettings>
  62 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  63 + </RuleSettings>
  64 + </Rule>
  65 + <Rule Name="SingleLineCommentMustBePrecededByBlankLine">
  66 + <RuleSettings>
  67 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  68 + </RuleSettings>
  69 + </Rule>
  70 + <Rule Name="CodeMustNotContainBlankLinesAtStartOfFile">
  71 + <RuleSettings>
  72 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  73 + </RuleSettings>
  74 + </Rule>
  75 + <Rule Name="CodeMustNotContainBlankLinesAtEndOfFile">
  76 + <RuleSettings>
  77 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  78 + </RuleSettings>
  79 + </Rule>
  80 + </Rules>
  81 + <AnalyzerSettings />
  82 + </Analyzer>
  83 + <Analyzer AnalyzerId="StyleCop.CSharp.MaintainabilityRules">
  84 + <Rules>
  85 + <Rule Name="FieldsMustBePrivate">
  86 + <RuleSettings>
  87 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  88 + </RuleSettings>
  89 + </Rule>
  90 + <Rule Name="CodeAnalysisSuppressionMustHaveJustification">
  91 + <RuleSettings>
  92 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  93 + </RuleSettings>
  94 + </Rule>
  95 + <Rule Name="DebugAssertMustProvideMessageText">
  96 + <RuleSettings>
  97 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  98 + </RuleSettings>
  99 + </Rule>
  100 + <Rule Name="DebugFailMustProvideMessageText">
  101 + <RuleSettings>
  102 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  103 + </RuleSettings>
  104 + </Rule>
  105 + <Rule Name="FileMayOnlyContainASingleClass">
  106 + <RuleSettings>
  107 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  108 + </RuleSettings>
  109 + </Rule>
  110 + <Rule Name="FileMayOnlyContainASingleNamespace">
  111 + <RuleSettings>
  112 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  113 + </RuleSettings>
  114 + </Rule>
  115 + <Rule Name="StatementMustNotUseUnnecessaryParenthesis">
  116 + <RuleSettings>
  117 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  118 + </RuleSettings>
  119 + </Rule>
  120 + <Rule Name="ArithmeticExpressionsMustDeclarePrecedence">
  121 + <RuleSettings>
  122 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  123 + </RuleSettings>
  124 + </Rule>
  125 + <Rule Name="ConditionalExpressionsMustDeclarePrecedence">
  126 + <RuleSettings>
  127 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  128 + </RuleSettings>
  129 + </Rule>
  130 + <Rule Name="RemoveDelegateParenthesisWhenPossible">
  131 + <RuleSettings>
  132 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  133 + </RuleSettings>
  134 + </Rule>
  135 + <Rule Name="AttributeConstructorMustNotUseUnnecessaryParenthesis">
  136 + <RuleSettings>
  137 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  138 + </RuleSettings>
  139 + </Rule>
  140 + <Rule Name="RemoveUnnecessaryCode">
  141 + <RuleSettings>
  142 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  143 + </RuleSettings>
  144 + </Rule>
  145 + </Rules>
  146 + <AnalyzerSettings />
  147 + </Analyzer>
  148 + <Analyzer AnalyzerId="StyleCop.CSharp.NamingRules">
  149 + <Rules>
  150 + <Rule Name="ElementMustBeginWithUpperCaseLetter">
  151 + <RuleSettings>
  152 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  153 + </RuleSettings>
  154 + </Rule>
  155 + <Rule Name="ElementMustBeginWithLowerCaseLetter">
  156 + <RuleSettings>
  157 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  158 + </RuleSettings>
  159 + </Rule>
  160 + <Rule Name="InterfaceNamesMustBeginWithI">
  161 + <RuleSettings>
  162 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  163 + </RuleSettings>
  164 + </Rule>
  165 + <Rule Name="ConstFieldNamesMustBeginWithUpperCaseLetter">
  166 + <RuleSettings>
  167 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  168 + </RuleSettings>
  169 + </Rule>
  170 + <Rule Name="NonPrivateReadonlyFieldsMustBeginWithUpperCaseLetter">
  171 + <RuleSettings>
  172 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  173 + </RuleSettings>
  174 + </Rule>
  175 + <Rule Name="FieldNamesMustNotUseHungarianNotation">
  176 + <RuleSettings>
  177 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  178 + </RuleSettings>
  179 + </Rule>
  180 + <Rule Name="AccessibleFieldsMustBeginWithUpperCaseLetter">
  181 + <RuleSettings>
  182 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  183 + </RuleSettings>
  184 + </Rule>
  185 + <Rule Name="VariableNamesMustNotBePrefixed">
  186 + <RuleSettings>
  187 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  188 + </RuleSettings>
  189 + </Rule>
  190 + </Rules>
  191 + <AnalyzerSettings />
  192 + </Analyzer>
  193 + <Analyzer AnalyzerId="StyleCop.CSharp.OrderingRules">
  194 + <Rules>
  195 + <Rule Name="ElementsMustAppearInTheCorrectOrder">
  196 + <RuleSettings>
  197 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  198 + </RuleSettings>
  199 + </Rule>
  200 + <Rule Name="ElementsMustBeOrderedByAccess">
  201 + <RuleSettings>
  202 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  203 + </RuleSettings>
  204 + </Rule>
  205 + <Rule Name="ConstantsMustAppearBeforeFields">
  206 + <RuleSettings>
  207 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  208 + </RuleSettings>
  209 + </Rule>
  210 + <Rule Name="StaticElementsMustAppearBeforeInstanceElements">
  211 + <RuleSettings>
  212 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  213 + </RuleSettings>
  214 + </Rule>
  215 + <Rule Name="DeclarationKeywordsMustFollowOrder">
  216 + <RuleSettings>
  217 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  218 + </RuleSettings>
  219 + </Rule>
  220 + <Rule Name="ProtectedMustComeBeforeInternal">
  221 + <RuleSettings>
  222 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  223 + </RuleSettings>
  224 + </Rule>
  225 + <Rule Name="PropertyAccessorsMustFollowOrder">
  226 + <RuleSettings>
  227 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  228 + </RuleSettings>
  229 + </Rule>
  230 + <Rule Name="EventAccessorsMustFollowOrder">
  231 + <RuleSettings>
  232 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  233 + </RuleSettings>
  234 + </Rule>
  235 + <Rule Name="SystemUsingDirectivesMustBePlacedBeforeOtherUsingDirectives">
  236 + <RuleSettings>
  237 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  238 + </RuleSettings>
  239 + </Rule>
  240 + <Rule Name="UsingAliasDirectivesMustBePlacedAfterOtherUsingDirectives">
  241 + <RuleSettings>
  242 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  243 + </RuleSettings>
  244 + </Rule>
  245 + <Rule Name="UsingDirectivesMustBeOrderedAlphabeticallyByNamespace">
  246 + <RuleSettings>
  247 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  248 + </RuleSettings>
  249 + </Rule>
  250 + <Rule Name="UsingAliasDirectivesMustBeOrderedAlphabeticallyByAliasName">
  251 + <RuleSettings>
  252 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  253 + </RuleSettings>
  254 + </Rule>
  255 + </Rules>
  256 + <AnalyzerSettings />
  257 + </Analyzer>
  258 + <Analyzer AnalyzerId="StyleCop.CSharp.ReadabilityRules">
  259 + <Rules>
  260 + <Rule Name="CommentsMustContainText">
  261 + <RuleSettings>
  262 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  263 + </RuleSettings>
  264 + </Rule>
  265 + <Rule Name="DoNotPrefixCallsWithBaseUnlessLocalImplementationExists">
  266 + <RuleSettings>
  267 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  268 + </RuleSettings>
  269 + </Rule>
  270 + <Rule Name="OpeningParenthesisMustBeOnDeclarationLine">
  271 + <RuleSettings>
  272 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  273 + </RuleSettings>
  274 + </Rule>
  275 + <Rule Name="ClosingParenthesisMustBeOnLineOfLastParameter">
  276 + <RuleSettings>
  277 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  278 + </RuleSettings>
  279 + </Rule>
  280 + <Rule Name="ClosingParenthesisMustBeOnLineOfOpeningParenthesis">
  281 + <RuleSettings>
  282 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  283 + </RuleSettings>
  284 + </Rule>
  285 + <Rule Name="CommaMustBeOnSameLineAsPreviousParameter">
  286 + <RuleSettings>
  287 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  288 + </RuleSettings>
  289 + </Rule>
  290 + <Rule Name="ParameterListMustFollowDeclaration">
  291 + <RuleSettings>
  292 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  293 + </RuleSettings>
  294 + </Rule>
  295 + <Rule Name="ParameterMustFollowComma">
  296 + <RuleSettings>
  297 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  298 + </RuleSettings>
  299 + </Rule>
  300 + <Rule Name="ParametersMustBeOnSameLineOrSeparateLines">
  301 + <RuleSettings>
  302 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  303 + </RuleSettings>
  304 + </Rule>
  305 + <Rule Name="QueryClauseMustFollowPreviousClause">
  306 + <RuleSettings>
  307 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  308 + </RuleSettings>
  309 + </Rule>
  310 + <Rule Name="QueryClausesMustBeOnSeparateLinesOrAllOnOneLine">
  311 + <RuleSettings>
  312 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  313 + </RuleSettings>
  314 + </Rule>
  315 + <Rule Name="QueryClauseMustBeginOnNewLineWhenPreviousClauseSpansMultipleLines">
  316 + <RuleSettings>
  317 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  318 + </RuleSettings>
  319 + </Rule>
  320 + <Rule Name="QueryClausesSpanningMultipleLinesMustBeginOnOwnLine">
  321 + <RuleSettings>
  322 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  323 + </RuleSettings>
  324 + </Rule>
  325 + <Rule Name="DoNotPlaceRegionsWithinElements">
  326 + <RuleSettings>
  327 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  328 + </RuleSettings>
  329 + </Rule>
  330 + <Rule Name="CodeMustNotContainEmptyStatements">
  331 + <RuleSettings>
  332 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  333 + </RuleSettings>
  334 + </Rule>
  335 + <Rule Name="CodeMustNotContainMultipleStatementsOnOneLine">
  336 + <RuleSettings>
  337 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  338 + </RuleSettings>
  339 + </Rule>
  340 + <Rule Name="BlockStatementsMustNotContainEmbeddedComments">
  341 + <RuleSettings>
  342 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  343 + </RuleSettings>
  344 + </Rule>
  345 + <Rule Name="BlockStatementsMustNotContainEmbeddedRegions">
  346 + <RuleSettings>
  347 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  348 + </RuleSettings>
  349 + </Rule>
  350 + <Rule Name="UseStringEmptyForEmptyStrings">
  351 + <RuleSettings>
  352 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  353 + </RuleSettings>
  354 + </Rule>
  355 + <Rule Name="UseBuiltInTypeAlias">
  356 + <RuleSettings>
  357 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  358 + </RuleSettings>
  359 + </Rule>
  360 + <Rule Name="UseShorthandForNullableTypes">
  361 + <RuleSettings>
  362 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  363 + </RuleSettings>
  364 + </Rule>
  365 + </Rules>
  366 + <AnalyzerSettings />
  367 + </Analyzer>
  368 + <Analyzer AnalyzerId="StyleCop.CSharp.SpacingRules">
  369 + <Rules>
  370 + <Rule Name="KeywordsMustBeSpacedCorrectly">
  371 + <RuleSettings>
  372 + <BooleanProperty Name="Enabled">False</BooleanProperty>
  373 + </RuleSettings>
  374 + </Rule>
  375 + <Rule Name="CommasMustBeSpacedCorrectly">