Allowed compilation and unit tests with the mono-3.5 profile and without NMock

git-svn-id: file:///srv/devel/repo-conversion/nusu@311 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2014-07-21 16:17:13 +00:00
parent de4a7d2213
commit e8c21b91d4
12 changed files with 55 additions and 2 deletions

View File

@ -16,7 +16,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\mono-3.5\Debug\</OutputPath>
<DefineConstants>DEBUG;NO_SPECIALIZED_COLLECTIONS;NO_CONCURRENT_COLLECTIONS;NO_SETS</DefineConstants>
<DefineConstants>DEBUG;UNITTEST;NO_SPECIALIZED_COLLECTIONS;NO_CONCURRENT_COLLECTIONS;NO_SETS;NO_NMOCK</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
@ -28,13 +28,22 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<DefineConstants>NO_SPECIALIZED_COLLECTIONS;NO_CONCURRENT_COLLECTIONS;NO_SETS</DefineConstants>
<DefineConstants>UNITTEST;NO_SPECIALIZED_COLLECTIONS;NO_CONCURRENT_COLLECTIONS;NO_SETS;NO_NMOCK</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Reference Include="NMock.StrongNamed">
<HintPath>..\References\nmock\mono-2.0\NMock.StrongNamed.dll</HintPath>
</Reference>
<Reference Include="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\References\nunit\net-2.0\framework\nunit.framework.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Source\Cloning\CloneFactoryTest.cs" />

View File

@ -230,6 +230,8 @@ namespace Nuclex.Support {
Assert.AreEqual(Environment.ProcessorCount, AffineThreadPool.MaxThreads);
}
#if WINDOWS
/// <summary>
/// Verifies that the ProcessThread instance for a system thread id can
/// be determined using the GetProcessThread() method
@ -250,6 +252,8 @@ namespace Nuclex.Support {
}
}
#endif // WINDOWS
/// <summary>
/// Tests whether the afine thread pool's default exception handler works
/// as expected

View File

@ -18,6 +18,8 @@ License along with this library
*/
#endregion
#if !NO_SETS
#if UNITTEST
using System;
@ -220,3 +222,5 @@ namespace Nuclex.Support.Cloning {
} // namespace Nuclex.Support.Cloning
#endif // UNITTEST
#endif // !NO_SETS

View File

@ -31,6 +31,8 @@ namespace Nuclex.Support.Collections {
[TestFixture]
internal class ConstantsTest {
#if !NO_SPECIALIZED_COLLECTIONS
/// <summary>
/// Verifies that the collection reset event arguments have 'reset' specified as
/// their action
@ -42,6 +44,8 @@ namespace Nuclex.Support.Collections {
);
}
#endif // !NO_SPECIALIZED_COLLECTIONS
}
} // namespace Nuclex.Support.Collections

View File

@ -18,6 +18,8 @@ License along with this library
*/
#endregion
#if !NO_NMOCK
using System;
using System.Collections.Generic;
@ -139,3 +141,5 @@ namespace Nuclex.Support.Collections {
} // namespace Nuclex.Support.Collections
#endif // UNITTEST
#endif // !NO_NMOCK

View File

@ -18,6 +18,8 @@ License along with this library
*/
#endregion
#if !NO_NMOCK
#if UNITTEST
using System;
@ -584,3 +586,5 @@ namespace Nuclex.Support.Collections {
} // namespace Nuclex.Support.Collections
#endif // UNITTEST
#endif // !NO_NMOCK

View File

@ -18,6 +18,8 @@ License along with this library
*/
#endregion
#if !NO_NMOCK
using System;
using System.Collections.Generic;
@ -170,3 +172,5 @@ namespace Nuclex.Support.Collections {
} // namespace Nuclex.Support.Collections
#endif // UNITTEST
#endif // !NO_NMOCK

View File

@ -18,6 +18,8 @@ License along with this library
*/
#endregion
#if !NO_SETS
#if UNITTEST
using System;
@ -295,3 +297,5 @@ namespace Nuclex.Support.Collections {
} // namespace Nuclex.Support.Collections
#endif // UNITTEST
#endif // !NO_SETS

View File

@ -18,6 +18,8 @@ License along with this library
*/
#endregion
#if !NO_SETS
#if UNITTEST
using System;
@ -202,3 +204,5 @@ namespace Nuclex.Support.Collections {
} // namespace Nuclex.Support.Collections
#endif // UNITTEST
#endif // !NO_SETS

View File

@ -18,6 +18,8 @@ License along with this library
*/
#endregion
#if !NO_NMOCK
using System;
using System.Collections;
using System.Collections.Generic;
@ -495,3 +497,5 @@ namespace Nuclex.Support.Collections {
} // namespace Nuclex.Support.Collections
#endif // UNITTEST
#endif // !NO_NMOCK

View File

@ -18,6 +18,8 @@ License along with this library
*/
#endregion
#if !NO_SETS
using System;
using System.Collections.Generic;
@ -82,3 +84,5 @@ namespace Nuclex.Support.Collections {
} // namespace Nuclex.Support.Collections
#endif // UNITTEST
#endif // !NO_SETS

View File

@ -18,6 +18,8 @@ License along with this library
*/
#endregion
#if !NO_CONCURRENT_COLLECTIONS
using System;
using System.Threading;
using System.Collections.Generic;
@ -250,3 +252,5 @@ namespace Nuclex.Support {
} // namespace Nuclex.Support
#endif // UNITTEST
#endif // !NO_CONCURRENT_COLLECTIONS