-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* develop: (23 commits) Increased timeout Updated TestCaseSource syntax, related to NUnit3 Avoid executing tests multiple times Enable all tests Execute only a subset of tests Send real time test results to AppVeyor Fixed test execution directory Updated test Nuget packages. Removed Fiddler usage and switch to nunit3 Fixed some async UTs Style refactoring to match StyleCop guidelines - Replaced Upload(string filename, INode parent) signature to UploadFile(string filename, INode parent) - Used IProgress interface to report progression for async methods - Added MegaApiClient.ReportProgressChunkSize to customize the threshold between each progression report - Added new UTs for DownloadAsync/UploadAsync methods Used partial classes instead define to integrate async methods Fixed UT issue Updated nuspec file to include net45. Added UT for async methods #21 Renamed UT and fix it to support anonymous and authenticated modes Cleanup code after PR #26. Introduced IProgress<int>. Test project targets 4.5 now Removed Coverity configuration #21 Added method GetNodeFromLink to retrieve Name and Size from a public download link #28 Trim deserialized attributes to first null terminated character if any Bump 1.2.0 Fixed async download progress reporting ...
- Loading branch information
Showing
39 changed files
with
2,829 additions
and
2,154 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> | ||
</startup> | ||
</configuration> |
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,126 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{19D28272-9DDB-4868-93E7-D98DCFAE08E9}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>CG.Web.MegaApiClient</RootNamespace> | ||
<AssemblyName>MegaApiClient</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">.\</SolutionDir> | ||
<RestorePackages>true</RestorePackages> | ||
<TargetFrameworkProfile /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>TRACE;DEBUG</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>1</WarningLevel> | ||
<DocumentationFile>bin\Debug\MegaApiClient.XML</DocumentationFile> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<DocumentationFile>bin\Release\MegaApiClient.xml</DocumentationFile> | ||
<NoWarn>1591</NoWarn> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<SignAssembly>true</SignAssembly> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<AssemblyOriginatorKeyFile>..\key.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<StartupObject /> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Newtonsoft.Json"> | ||
<HintPath>..\packages\Newtonsoft.Json.6.0.8\lib\net40\Newtonsoft.Json.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Web" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\key.snk"> | ||
<Link>Properties\key.snk</Link> | ||
</None> | ||
<None Include="App.config" /> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="..\MegaApiClient\BigInteger.cs"> | ||
<Link>BigInteger.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\Crypto.cs"> | ||
<Link>Crypto.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\Exceptions.cs"> | ||
<Link>Exceptions.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\Extensions.cs"> | ||
<Link>Extensions.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\IMegaApiClient.cs"> | ||
<Link>IMegaApiClient.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\IMegaApiClientAsync.cs"> | ||
<Link>IMegaApiClientAsync.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\INode.cs"> | ||
<Link>INode.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\IWebClient.cs"> | ||
<Link>IWebClient.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\JsonSerialization.cs"> | ||
<Link>JsonSerialization.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\MegaAesCtrStream.cs"> | ||
<Link>MegaAesCtrStream.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\MegaApiClient.cs"> | ||
<Link>MegaApiClient.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\MegaApiClientAsync.cs"> | ||
<Link>MegaApiClientAsync.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\Node.cs"> | ||
<Link>Node.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\ProgressionStream.cs"> | ||
<Link>ProgressionStream.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\Properties\AssemblyInfo.cs"> | ||
<Link>Properties\AssemblyInfo.cs</Link> | ||
</Compile> | ||
<Compile Include="..\MegaApiClient\WebClient.cs"> | ||
<Link>WebClient.cs</Link> | ||
</Compile> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" /> | ||
</packages> |
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
Oops, something went wrong.