You've already forked linux-packaging-mono
Imported Upstream version 6.6.0.89
Former-commit-id: b39a328747c2f3414dc52e009fb6f0aa80ca2492
This commit is contained in:
parent
cf815e07e0
commit
95fdb59ea6
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\..\packages\NUnit.3.10.1\build\NUnit.props" Condition="Exists('..\..\packages\NUnit.3.10.1\build\NUnit.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
@@ -9,7 +10,10 @@
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Monodoc.Test</RootNamespace>
|
||||
<AssemblyName>Monodoc.Test</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -27,8 +31,8 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="nunit.framework, Version=3.6.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\NUnit.3.6.1\lib\net45\nunit.framework.dll</HintPath>
|
||||
<Reference Include="nunit.framework, Version=3.10.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\NUnit.3.10.1\lib\net45\nunit.framework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
@@ -43,14 +47,23 @@
|
||||
<Compile Include="Monodoc.Ecma\EcmaUrlTests.cs" />
|
||||
<Compile Include="Monodoc.Generators\RawGeneratorTests.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\monodoc.csproj">
|
||||
<Project>{6e644802-b579-4037-9809-9cf4c7172c9d}</Project>
|
||||
<Name>monodoc</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\..\packages\NUnit.3.10.1\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\NUnit.3.10.1\build\NUnit.props'))" />
|
||||
</Target>
|
||||
</Project>
|
||||
@@ -18,7 +18,7 @@ namespace MonoTests.Monodoc
|
||||
// signed/strong-named by the build, we have to resort to reflection
|
||||
TDelegate GetTestedMethod<TDelegate> (string methodName)
|
||||
{
|
||||
var ecmaDoc = Type.GetType ("Monodoc.Providers.EcmaDoc, monodoc, PublicKey=0738eb9f132ed756");
|
||||
var ecmaDoc = Type.GetType ("Monodoc.Providers.EcmaDoc, monodoc");
|
||||
return (TDelegate)(object)Delegate.CreateDelegate (typeof (TDelegate), ecmaDoc.GetMethod (methodName));
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace MonoTests.Monodoc
|
||||
int testCount = 0;
|
||||
|
||||
foreach (var leaf in GetLeaves (rootTree.RootNode)) {
|
||||
if (!rootTree.RenderUrl (leaf.PublicUrl, generator, out result) || leaf != result) {
|
||||
if (!rootTree.RenderUrl (leaf.PublicUrl, generator, out result) || leaf.PublicUrl != result.PublicUrl) {
|
||||
Console.WriteLine ("Error: {0} with HelpSource {1} ", leaf.PublicUrl, leaf.Tree.HelpSource.Name);
|
||||
errorCount++;
|
||||
}
|
||||
@@ -87,9 +87,10 @@ namespace MonoTests.Monodoc
|
||||
|
||||
//Assert.AreEqual (0, errorCount, errorCount + " / " + testCount.ToString ());
|
||||
|
||||
// HACK: in reality we have currently 4 known issues which are due to duplicated namespaces across
|
||||
// doc sources, something that was never supported and that we need to improve/fix at some stage
|
||||
Assert.That (errorCount, Is.LessThanOrEqualTo(4), errorCount + " / " + testCount.ToString ());
|
||||
// HACK: in reality we have currently 17 known issues, mostly which are due to duplicated namespaces across
|
||||
// doc sources, something that was never supported and that we need to improve/fix at some stage.
|
||||
// also some issues with operators.
|
||||
Assert.That (errorCount, Is.LessThanOrEqualTo(17), errorCount + " / " + testCount.ToString ());
|
||||
}
|
||||
|
||||
IEnumerable<Node> GetLeaves (Node node)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NUnit" version="3.6.1" targetFramework="net45" />
|
||||
<package id="NUnit" version="3.10.1" targetFramework="net45" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user