Skip to content

Commit

Permalink
Updated UnitTests to use implicit usings and default compile items
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Sep 14, 2023
1 parent 2ecba3f commit 5635ac0
Show file tree
Hide file tree
Showing 97 changed files with 21 additions and 1,004 deletions.
4 changes: 0 additions & 4 deletions UnitTests/AccessControlListTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
// THE SOFTWARE.
//

using System;
using System.Collections;
using System.Collections.Generic;

using NUnit.Framework;

using MailKit;

Expand Down
4 changes: 0 additions & 4 deletions UnitTests/AnnotationAttributeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
// THE SOFTWARE.
//

using System;

using NUnit.Framework;

using MailKit;

namespace UnitTests {
Expand Down
4 changes: 0 additions & 4 deletions UnitTests/AnnotationEntryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
// THE SOFTWARE.
//

using System;

using NUnit.Framework;

using MailKit;

namespace UnitTests {
Expand Down
4 changes: 0 additions & 4 deletions UnitTests/AnnotationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
// THE SOFTWARE.
//

using System;

using NUnit.Framework;

using MailKit;

namespace UnitTests {
Expand Down
5 changes: 0 additions & 5 deletions UnitTests/AppendRequestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
// THE SOFTWARE.
//

using System;
using System.Collections.Generic;

using NUnit.Framework;

using MimeKit;
using MailKit;

Expand Down
7 changes: 1 addition & 6 deletions UnitTests/ArgumentExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,10 @@
// THE SOFTWARE.
//

using System;

using NUnit.Framework;

using MailKit;
using MailKit.Search;

namespace UnitTests
{
namespace UnitTests {
[TestFixture]
public class ArgumentExceptionTests
{
Expand Down
4 changes: 0 additions & 4 deletions UnitTests/BodyPartTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@
// THE SOFTWARE.
//

using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;

using NUnit.Framework;

using MimeKit;
using MailKit;
Expand Down
5 changes: 0 additions & 5 deletions UnitTests/CompressedStreamTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
// THE SOFTWARE.
//

using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;

using NUnit.Framework;

using MailKit;

Expand Down
6 changes: 0 additions & 6 deletions UnitTests/DuplexStreamTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
// THE SOFTWARE.
//

using System;
using System.IO;
using System.Threading.Tasks;

using NUnit.Framework;

using MailKit;

using UnitTests.Net;
Expand Down
8 changes: 1 addition & 7 deletions UnitTests/EnvelopeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,12 @@
// THE SOFTWARE.
//

using System;
using System.Linq;

using NUnit.Framework;

using MimeKit;
using MimeKit.Utils;

using MailKit;

namespace UnitTests
{
namespace UnitTests {
[TestFixture]
public class EnvelopeTests
{
Expand Down
6 changes: 0 additions & 6 deletions UnitTests/EventArgsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
// THE SOFTWARE.
//

using System;
using System.Collections;
using System.Collections.Generic;

using NUnit.Framework;

using MimeKit;
using MailKit;

Expand Down
7 changes: 1 addition & 6 deletions UnitTests/ExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,13 @@
// THE SOFTWARE.
//

using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

using NUnit.Framework;

using MailKit;
using MailKit.Net.Imap;
using MailKit.Net.Pop3;

namespace UnitTests
{
namespace UnitTests {
[TestFixture]
public class ExceptionTests
{
Expand Down
4 changes: 1 addition & 3 deletions UnitTests/ExceptionalProtocolLogger.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

using MailKit;
using MailKit;

namespace UnitTests {
enum ExceptionalProtocolLoggerMode
Expand Down
3 changes: 0 additions & 3 deletions UnitTests/FolderNamespaceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@
// THE SOFTWARE.
//

using System;
using System.Collections;

using NUnit.Framework;

using MailKit;

namespace UnitTests {
Expand Down
5 changes: 0 additions & 5 deletions UnitTests/HeaderSetTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
// THE SOFTWARE.
//

using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;

using NUnit.Framework;

using MimeKit;
using MailKit;
Expand Down
3 changes: 0 additions & 3 deletions UnitTests/MailServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@
// THE SOFTWARE.
//

using System;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;

using NUnit.Framework;

using MailKit;
using MailKit.Security;
using MailKit.Net.Imap;
Expand Down
5 changes: 0 additions & 5 deletions UnitTests/MessageSortingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
// THE SOFTWARE.
//

using System;
using System.Collections.Generic;

using NUnit.Framework;

using MimeKit;

using MailKit.Search;
Expand Down
6 changes: 0 additions & 6 deletions UnitTests/MessageSummaryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
// THE SOFTWARE.
//

using System;
using System.Linq;
using System.Collections.Generic;

using NUnit.Framework;

using MimeKit;
using MailKit;

Expand Down
5 changes: 0 additions & 5 deletions UnitTests/MessageThreadingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
// THE SOFTWARE.
//

using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;

using NUnit.Framework;

using MimeKit;
using MimeKit.Utils;
Expand Down
4 changes: 0 additions & 4 deletions UnitTests/MetadataTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
// THE SOFTWARE.
//

using System;

using NUnit.Framework;

using MailKit;

namespace UnitTests {
Expand Down
3 changes: 0 additions & 3 deletions UnitTests/Net/DummyNetworkStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
// THE SOFTWARE.
//

using System;
using System.IO;

namespace UnitTests.Net {
public class DummyNetworkStream : MemoryStream
{
Expand Down
4 changes: 0 additions & 4 deletions UnitTests/Net/Imap/ImapAuthenticationSecretDetectorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
// THE SOFTWARE.
//

using System;
using System.Text;
using System.Collections.Generic;

using NUnit.Framework;

using MailKit;
using MailKit.Net.Imap;
Expand Down
10 changes: 2 additions & 8 deletions UnitTests/Net/Imap/ImapClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,13 @@
// THE SOFTWARE.
//

using System;
using System.IO;
using System.Net;
using System.Linq;
using System.Text;
using System.Threading;
using System.Net.Sockets;
using System.Net.Security;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;

using NUnit.Framework;

using MimeKit;

using MailKit;
Expand Down Expand Up @@ -6392,6 +6384,8 @@ public void TestNotify ()
})
}));

Assert.Throws<ArgumentNullException> (() => new ImapEvent.MessageNew (null));

client.Notify (true, new List<ImapEventGroup> {
new ImapEventGroup (ImapMailboxFilter.Personal, new List<ImapEvent> {
ImapEvent.MailboxName,
Expand Down
6 changes: 1 addition & 5 deletions UnitTests/Net/Imap/ImapCommandExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@
// THE SOFTWARE.
//

using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

using NUnit.Framework;

using MailKit.Net.Imap;

namespace UnitTests.Net.Imap
{
namespace UnitTests.Net.Imap {
[TestFixture]
public class ImapCommandExceptionTests
{
Expand Down
5 changes: 0 additions & 5 deletions UnitTests/Net/Imap/ImapCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
// THE SOFTWARE.
//

using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

using NUnit.Framework;

using MimeKit;
using MailKit;
Expand Down
4 changes: 0 additions & 4 deletions UnitTests/Net/Imap/ImapEncodingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
// THE SOFTWARE.
//

using System;

using NUnit.Framework;

using MailKit.Net.Imap;

namespace UnitTests.Net.Imap {
Expand Down
6 changes: 0 additions & 6 deletions UnitTests/Net/Imap/ImapEngineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,9 @@
// THE SOFTWARE.
//

using System;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Globalization;

using NUnit.Framework;

using MailKit;
using MailKit.Net.Imap;

Expand Down
6 changes: 0 additions & 6 deletions UnitTests/Net/Imap/ImapFolderAnnotationsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,8 @@
// THE SOFTWARE.
//

using System;
using System.IO;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

using NUnit.Framework;

using MimeKit;

Expand Down
Loading

0 comments on commit 5635ac0

Please sign in to comment.