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

@ -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