mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
2.0.9 release
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{A430AD28-B76A-4ED0-AF7D-D13B8969297F}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
@@ -41,8 +41,13 @@
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="taglib-sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=db62eba44689b5b0, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\ThirdParty\taglib-sharp.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="FileGroupInfoTest.cs" />
|
||||
<Compile Include="ProcessorTest.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
@@ -55,14 +60,30 @@
|
||||
<Project>{1DD41038-D885-46C5-8DDE-E0B82F066584}</Project>
|
||||
<Name>CUETools.CDImage</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\CUETools.Codecs.LossyWAV\CUETools.Codecs.LossyWAV.csproj">
|
||||
<Project>{8A0426FA-0BC2-4C49-A6E5-1F9A68156F19}</Project>
|
||||
<Name>CUETools.Codecs.LossyWAV</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\CUETools.Codecs\CUETools.Codecs.csproj">
|
||||
<Project>{6458A13A-30EF-45A9-9D58-E5031B17BEE2}</Project>
|
||||
<Name>CUETools.Codecs</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\CUETools.Compression\CUETools.Compression.csproj">
|
||||
<Project>{14EE067E-C218-4625-9540-2361AB27C4A6}</Project>
|
||||
<Name>CUETools.Compression</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\CUETools.CTDB\CUETools.CTDB.csproj">
|
||||
<Project>{AA2A9A7E-45FB-4632-AD85-85B0E556F818}</Project>
|
||||
<Name>CUETools.CTDB</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\CUETools.Processor\CUETools.Processor.csproj">
|
||||
<Project>{4911BD82-49EF-4858-8B51-5394F86739A4}</Project>
|
||||
<Name>CUETools.Processor</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\CUETools.Ripper\CUETools.Ripper.csproj">
|
||||
<Project>{D2700165-3E77-4B28-928D-551F5FC11954}</Project>
|
||||
<Name>CUETools.Ripper</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Freedb\Freedb.csproj">
|
||||
<Project>{5ADCFD6D-BFEA-4B10-BB45-9083BBB56AF4}</Project>
|
||||
<Name>Freedb</Name>
|
||||
|
||||
82
CUETools/CUETools.TestProcessor/FileGroupInfoTest.cs
Normal file
82
CUETools/CUETools.TestProcessor/FileGroupInfoTest.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
using CUETools.Processor;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
namespace CUETools.TestProcessor
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
///This is a test class for FileGroupInfoTest and is intended
|
||||
///to contain all FileGroupInfoTest Unit Tests
|
||||
///</summary>
|
||||
[TestClass()]
|
||||
public class FileGroupInfoTest
|
||||
{
|
||||
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
//You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
//Use ClassInitialize to run code before running the first test in the class
|
||||
//[ClassInitialize()]
|
||||
//public static void MyClassInitialize(TestContext testContext)
|
||||
//{
|
||||
//}
|
||||
//
|
||||
//Use ClassCleanup to run code after all tests in a class have run
|
||||
//[ClassCleanup()]
|
||||
//public static void MyClassCleanup()
|
||||
//{
|
||||
//}
|
||||
//
|
||||
//Use TestInitialize to run code before running each test
|
||||
//[TestInitialize()]
|
||||
//public void MyTestInitialize()
|
||||
//{
|
||||
//}
|
||||
//
|
||||
//Use TestCleanup to run code after each test has run
|
||||
//[TestCleanup()]
|
||||
//public void MyTestCleanup()
|
||||
//{
|
||||
//}
|
||||
//
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
///A test for CompareTrackNames
|
||||
///</summary>
|
||||
[TestMethod()]
|
||||
public void CompareTrackNamesTest()
|
||||
{
|
||||
Assert.AreEqual(0, FileGroupInfo.CompareTrackNames("abc", "abc"));
|
||||
Assert.AreEqual(0, FileGroupInfo.CompareTrackNames(" 1.abc", "1.abc"));
|
||||
Assert.AreEqual(-1, FileGroupInfo.CompareTrackNames("0 abc", "1 abc"));
|
||||
Assert.AreEqual(-1, FileGroupInfo.CompareTrackNames("0.abc", "1.abc"));
|
||||
Assert.AreEqual(-1, FileGroupInfo.CompareTrackNames("1 abc", "1.1 abc"));
|
||||
Assert.AreEqual(-1, FileGroupInfo.CompareTrackNames("1.1 abc", "1.10 abc"));
|
||||
Assert.AreEqual(-1, FileGroupInfo.CompareTrackNames("1.10 abc", "2.1 abc"));
|
||||
Assert.AreEqual(-1, FileGroupInfo.CompareTrackNames("2.1.abc", "10.abc"));
|
||||
Assert.AreEqual(-1, FileGroupInfo.CompareTrackNames("Track 2a", "Track 10"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user