Began restoring the unit tests (and porting any usages of NMock to NSubstitute)

This commit is contained in:
Markus Ewald 2024-07-24 14:10:08 +02:00 committed by cygon
parent 825cd8c105
commit 8b011981d9
16 changed files with 46 additions and 58 deletions

View file

@ -17,8 +17,6 @@ limitations under the License.
*/
#endregion // Apache License 2.0
#if UNITTEST
using System;
using System.IO;
@ -119,5 +117,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -17,8 +17,6 @@ limitations under the License.
*/
#endregion // Apache License 2.0
#if UNITTEST
using System;
using System.Collections.Generic;
@ -261,5 +259,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -17,8 +17,6 @@ limitations under the License.
*/
#endregion // Apache License 2.0
#if UNITTEST
using System;
using System.Collections.Generic;
@ -125,5 +123,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -17,8 +17,6 @@ limitations under the License.
*/
#endregion // Apache License 2.0
#if UNITTEST
using System;
using NUnit.Framework;
@ -86,5 +84,3 @@ namespace Nuclex.Support {
}
}
#endif // UNITTEST

View file

@ -17,13 +17,10 @@ limitations under the License.
*/
#endregion // Apache License 2.0
#if UNITTEST
using System;
using System.ComponentModel;
using NUnit.Framework;
using NMock;
namespace Nuclex.Support {
@ -167,5 +164,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -20,8 +20,6 @@ limitations under the License.
using System;
using System.IO;
#if UNITTEST
using NUnit.Framework;
namespace Nuclex.Support {
@ -242,5 +240,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -17,8 +17,6 @@ limitations under the License.
*/
#endregion // Apache License 2.0
#if UNITTEST
using System;
using System.ComponentModel;
@ -120,5 +118,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -20,8 +20,6 @@ limitations under the License.
using System;
using System.IO;
#if UNITTEST
using NUnit.Framework;
namespace Nuclex.Support {
@ -64,5 +62,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -17,8 +17,6 @@ limitations under the License.
*/
#endregion // Apache License 2.0
#if UNITTEST
using System;
using System.Collections.Generic;
using System.Text;
@ -370,5 +368,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -20,8 +20,6 @@ limitations under the License.
using System;
using System.IO;
#if UNITTEST
using NUnit.Framework;
namespace Nuclex.Support {
@ -212,5 +210,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -20,8 +20,6 @@ limitations under the License.
using System;
using System.IO;
#if UNITTEST
using NUnit.Framework;
namespace Nuclex.Support {
@ -207,5 +205,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -17,8 +17,6 @@ limitations under the License.
*/
#endregion // Apache License 2.0
#if UNITTEST
using System;
using System.Reflection;
@ -88,7 +86,7 @@ namespace Nuclex.Support {
#region class HasIgnoreAttribute
/// <summary>Class that carries an IgnoreAttribute</summary>
[Ignore]
[Ignore("Just misusing NUnit's IgnoreAttribute to have an attribute to test against")]
private class HasIgnoreAttribute { }
#endregion // class HasIgnoreAttribute
@ -137,5 +135,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -17,8 +17,6 @@ limitations under the License.
*/
#endregion // Apache License 2.0
#if UNITTEST
using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
@ -109,5 +107,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST

View file

@ -17,8 +17,6 @@ limitations under the License.
*/
#endregion // Apache License 2.0
#if UNITTEST
using System;
using System.IO;
using System.Text;
@ -309,5 +307,3 @@ namespace Nuclex.Support {
}
} // namespace Nuclex.Support
#endif // UNITTEST