diff --git a/Benchmarks/BenchmarkHelper.cs b/Benchmarks/BenchmarkHelper.cs index d9b6fa23f3..0936642336 100644 --- a/Benchmarks/BenchmarkHelper.cs +++ b/Benchmarks/BenchmarkHelper.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/Benchmarks/IO/Filters/BestEncodingFilterBenchmarks.cs b/Benchmarks/IO/Filters/BestEncodingFilterBenchmarks.cs index 147006a284..f8cfe194f4 100644 --- a/Benchmarks/IO/Filters/BestEncodingFilterBenchmarks.cs +++ b/Benchmarks/IO/Filters/BestEncodingFilterBenchmarks.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/Benchmarks/IO/Filters/DecoderFilterBenchmarks.cs b/Benchmarks/IO/Filters/DecoderFilterBenchmarks.cs index 324ab32780..0c9cf9bbe3 100644 --- a/Benchmarks/IO/Filters/DecoderFilterBenchmarks.cs +++ b/Benchmarks/IO/Filters/DecoderFilterBenchmarks.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/Benchmarks/IO/Filters/EncoderFilterBenchmarks.cs b/Benchmarks/IO/Filters/EncoderFilterBenchmarks.cs index d647f355d5..e76b8eca34 100644 --- a/Benchmarks/IO/Filters/EncoderFilterBenchmarks.cs +++ b/Benchmarks/IO/Filters/EncoderFilterBenchmarks.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/Benchmarks/IO/Filters/TrailingWhitespaceFilterBenchmarks.cs b/Benchmarks/IO/Filters/TrailingWhitespaceFilterBenchmarks.cs index eafca01b65..0faf2d01ff 100644 --- a/Benchmarks/IO/Filters/TrailingWhitespaceFilterBenchmarks.cs +++ b/Benchmarks/IO/Filters/TrailingWhitespaceFilterBenchmarks.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/Benchmarks/IO/Filters/Unix2DosFilterBenchmarks.cs b/Benchmarks/IO/Filters/Unix2DosFilterBenchmarks.cs index fb4ac9a7e5..f8342def4a 100644 --- a/Benchmarks/IO/Filters/Unix2DosFilterBenchmarks.cs +++ b/Benchmarks/IO/Filters/Unix2DosFilterBenchmarks.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/Benchmarks/MimeMessageBenchmarks.cs b/Benchmarks/MimeMessageBenchmarks.cs index f014257f96..4ca224f277 100644 --- a/Benchmarks/MimeMessageBenchmarks.cs +++ b/Benchmarks/MimeMessageBenchmarks.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/Benchmarks/MimeParserBenchmarks.cs b/Benchmarks/MimeParserBenchmarks.cs index 26d449b60b..d3ce884f81 100644 --- a/Benchmarks/MimeParserBenchmarks.cs +++ b/Benchmarks/MimeParserBenchmarks.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/Benchmarks/Program.cs b/Benchmarks/Program.cs index 75c3b75465..0aacaed4ea 100644 --- a/Benchmarks/Program.cs +++ b/Benchmarks/Program.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/Benchmarks/Utils/Rfc2047Benchmarks.cs b/Benchmarks/Utils/Rfc2047Benchmarks.cs index a00379cb7b..aa194b7ab8 100644 --- a/Benchmarks/Utils/Rfc2047Benchmarks.cs +++ b/Benchmarks/Utils/Rfc2047Benchmarks.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/AddressParserFlags.cs b/MimeKit/AddressParserFlags.cs index 721260b199..5e6bb0fcd8 100644 --- a/MimeKit/AddressParserFlags.cs +++ b/MimeKit/AddressParserFlags.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/AsyncMimeParser.cs b/MimeKit/AsyncMimeParser.cs index e8c0bf3f51..1a87fb1b77 100644 --- a/MimeKit/AsyncMimeParser.cs +++ b/MimeKit/AsyncMimeParser.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/AsyncMimeReader.cs b/MimeKit/AsyncMimeReader.cs index 14ac18702a..91e6b02c2e 100644 --- a/MimeKit/AsyncMimeReader.cs +++ b/MimeKit/AsyncMimeReader.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/AttachmentCollection.cs b/MimeKit/AttachmentCollection.cs index b4e1882dce..f1e1f675bc 100644 --- a/MimeKit/AttachmentCollection.cs +++ b/MimeKit/AttachmentCollection.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/BodyBuilder.cs b/MimeKit/BodyBuilder.cs index 9ce301edb5..b7be5a657b 100644 --- a/MimeKit/BodyBuilder.cs +++ b/MimeKit/BodyBuilder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/ContentDisposition.cs b/MimeKit/ContentDisposition.cs index bdd2a1861d..bea49b46a0 100644 --- a/MimeKit/ContentDisposition.cs +++ b/MimeKit/ContentDisposition.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/ContentEncoding.cs b/MimeKit/ContentEncoding.cs index 6a68b99914..fa23f6d0cf 100644 --- a/MimeKit/ContentEncoding.cs +++ b/MimeKit/ContentEncoding.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/ContentType.cs b/MimeKit/ContentType.cs index 56a732aa20..561d56f6a7 100644 --- a/MimeKit/ContentType.cs +++ b/MimeKit/ContentType.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/ApplicationPgpEncrypted.cs b/MimeKit/Cryptography/ApplicationPgpEncrypted.cs index 77b7044b60..9b7cb22283 100644 --- a/MimeKit/Cryptography/ApplicationPgpEncrypted.cs +++ b/MimeKit/Cryptography/ApplicationPgpEncrypted.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/ApplicationPgpSignature.cs b/MimeKit/Cryptography/ApplicationPgpSignature.cs index c0b23a8ff8..7f325f6a41 100644 --- a/MimeKit/Cryptography/ApplicationPgpSignature.cs +++ b/MimeKit/Cryptography/ApplicationPgpSignature.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/ApplicationPkcs7Mime.cs b/MimeKit/Cryptography/ApplicationPkcs7Mime.cs index 5f67cff93e..a851d01b3f 100644 --- a/MimeKit/Cryptography/ApplicationPkcs7Mime.cs +++ b/MimeKit/Cryptography/ApplicationPkcs7Mime.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/ApplicationPkcs7Signature.cs b/MimeKit/Cryptography/ApplicationPkcs7Signature.cs index 91d26fd038..1102d5b6e9 100644 --- a/MimeKit/Cryptography/ApplicationPkcs7Signature.cs +++ b/MimeKit/Cryptography/ApplicationPkcs7Signature.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/ArcSigner.cs b/MimeKit/Cryptography/ArcSigner.cs index 088828c8e8..df7d55af0f 100644 --- a/MimeKit/Cryptography/ArcSigner.cs +++ b/MimeKit/Cryptography/ArcSigner.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/ArcVerifier.cs b/MimeKit/Cryptography/ArcVerifier.cs index c7c2e8717e..9d951b9824 100644 --- a/MimeKit/Cryptography/ArcVerifier.cs +++ b/MimeKit/Cryptography/ArcVerifier.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/AsymmetricAlgorithmExtensions.cs b/MimeKit/Cryptography/AsymmetricAlgorithmExtensions.cs index 2c7cbdb8af..663ddc7bed 100644 --- a/MimeKit/Cryptography/AsymmetricAlgorithmExtensions.cs +++ b/MimeKit/Cryptography/AsymmetricAlgorithmExtensions.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/AuthenticationResults.cs b/MimeKit/Cryptography/AuthenticationResults.cs index 54f5944c81..22f00aeff1 100644 --- a/MimeKit/Cryptography/AuthenticationResults.cs +++ b/MimeKit/Cryptography/AuthenticationResults.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/BouncyCastleCertificateExtensions.cs b/MimeKit/Cryptography/BouncyCastleCertificateExtensions.cs index 69d6f8b9da..b5e025f1ae 100644 --- a/MimeKit/Cryptography/BouncyCastleCertificateExtensions.cs +++ b/MimeKit/Cryptography/BouncyCastleCertificateExtensions.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/BouncyCastleSecureMimeContext.cs b/MimeKit/Cryptography/BouncyCastleSecureMimeContext.cs index 887cb78991..7e1d334ea5 100644 --- a/MimeKit/Cryptography/BouncyCastleSecureMimeContext.cs +++ b/MimeKit/Cryptography/BouncyCastleSecureMimeContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/CertificateNotFoundException.cs b/MimeKit/Cryptography/CertificateNotFoundException.cs index 9fc43612f0..4a08e19eb2 100644 --- a/MimeKit/Cryptography/CertificateNotFoundException.cs +++ b/MimeKit/Cryptography/CertificateNotFoundException.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/CmsRecipient.cs b/MimeKit/Cryptography/CmsRecipient.cs index 6d91cb8b12..ff8577dd71 100644 --- a/MimeKit/Cryptography/CmsRecipient.cs +++ b/MimeKit/Cryptography/CmsRecipient.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/CmsRecipientCollection.cs b/MimeKit/Cryptography/CmsRecipientCollection.cs index dadd191ead..8cd55c8982 100644 --- a/MimeKit/Cryptography/CmsRecipientCollection.cs +++ b/MimeKit/Cryptography/CmsRecipientCollection.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/CmsSigner.cs b/MimeKit/Cryptography/CmsSigner.cs index f2d73ad2cd..76e20b293e 100644 --- a/MimeKit/Cryptography/CmsSigner.cs +++ b/MimeKit/Cryptography/CmsSigner.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/CryptographyContext.cs b/MimeKit/Cryptography/CryptographyContext.cs index f8b84cbab2..3f08951a41 100644 --- a/MimeKit/Cryptography/CryptographyContext.cs +++ b/MimeKit/Cryptography/CryptographyContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DbExtensions.cs b/MimeKit/Cryptography/DbExtensions.cs index 1c1bc0231b..542dc09e5c 100644 --- a/MimeKit/Cryptography/DbExtensions.cs +++ b/MimeKit/Cryptography/DbExtensions.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DefaultSecureMimeContext.cs b/MimeKit/Cryptography/DefaultSecureMimeContext.cs index 49b82372dc..de181b2268 100644 --- a/MimeKit/Cryptography/DefaultSecureMimeContext.cs +++ b/MimeKit/Cryptography/DefaultSecureMimeContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DigestAlgorithm.cs b/MimeKit/Cryptography/DigestAlgorithm.cs index 549d603814..54cefe12c0 100644 --- a/MimeKit/Cryptography/DigestAlgorithm.cs +++ b/MimeKit/Cryptography/DigestAlgorithm.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DigitalSignatureCollection.cs b/MimeKit/Cryptography/DigitalSignatureCollection.cs index d4dc401ca3..ddad3ee2ac 100644 --- a/MimeKit/Cryptography/DigitalSignatureCollection.cs +++ b/MimeKit/Cryptography/DigitalSignatureCollection.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DigitalSignatureVerifyException.cs b/MimeKit/Cryptography/DigitalSignatureVerifyException.cs index 29b40bc017..a6c9dc0619 100644 --- a/MimeKit/Cryptography/DigitalSignatureVerifyException.cs +++ b/MimeKit/Cryptography/DigitalSignatureVerifyException.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimBodyFilter.cs b/MimeKit/Cryptography/DkimBodyFilter.cs index 6d13a92f4f..507825acb1 100644 --- a/MimeKit/Cryptography/DkimBodyFilter.cs +++ b/MimeKit/Cryptography/DkimBodyFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimCanonicalizationAlgorithm.cs b/MimeKit/Cryptography/DkimCanonicalizationAlgorithm.cs index 6b332fe204..a23f19e477 100644 --- a/MimeKit/Cryptography/DkimCanonicalizationAlgorithm.cs +++ b/MimeKit/Cryptography/DkimCanonicalizationAlgorithm.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimHashStream.cs b/MimeKit/Cryptography/DkimHashStream.cs index 93ab8b6126..ac8dd5eafb 100644 --- a/MimeKit/Cryptography/DkimHashStream.cs +++ b/MimeKit/Cryptography/DkimHashStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimPublicKeyLocatorBase.cs b/MimeKit/Cryptography/DkimPublicKeyLocatorBase.cs index e5b1b89121..5aa288c9e6 100644 --- a/MimeKit/Cryptography/DkimPublicKeyLocatorBase.cs +++ b/MimeKit/Cryptography/DkimPublicKeyLocatorBase.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimRelaxedBodyFilter.cs b/MimeKit/Cryptography/DkimRelaxedBodyFilter.cs index de12442a5d..d5320e4456 100644 --- a/MimeKit/Cryptography/DkimRelaxedBodyFilter.cs +++ b/MimeKit/Cryptography/DkimRelaxedBodyFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimSignatureAlgorithm.cs b/MimeKit/Cryptography/DkimSignatureAlgorithm.cs index 06d8d88a86..639844dee3 100644 --- a/MimeKit/Cryptography/DkimSignatureAlgorithm.cs +++ b/MimeKit/Cryptography/DkimSignatureAlgorithm.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimSignatureStream.cs b/MimeKit/Cryptography/DkimSignatureStream.cs index 81aa27ce8e..eefde73e08 100644 --- a/MimeKit/Cryptography/DkimSignatureStream.cs +++ b/MimeKit/Cryptography/DkimSignatureStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimSigner.cs b/MimeKit/Cryptography/DkimSigner.cs index dead222736..e310405428 100644 --- a/MimeKit/Cryptography/DkimSigner.cs +++ b/MimeKit/Cryptography/DkimSigner.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimSignerBase.cs b/MimeKit/Cryptography/DkimSignerBase.cs index 4ea63de08d..1a37a0a3c2 100644 --- a/MimeKit/Cryptography/DkimSignerBase.cs +++ b/MimeKit/Cryptography/DkimSignerBase.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimSimpleBodyFilter.cs b/MimeKit/Cryptography/DkimSimpleBodyFilter.cs index 241cd0f598..d1319844aa 100644 --- a/MimeKit/Cryptography/DkimSimpleBodyFilter.cs +++ b/MimeKit/Cryptography/DkimSimpleBodyFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimVerifier.cs b/MimeKit/Cryptography/DkimVerifier.cs index c9b4019689..0eb998f2e3 100644 --- a/MimeKit/Cryptography/DkimVerifier.cs +++ b/MimeKit/Cryptography/DkimVerifier.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/DkimVerifierBase.cs b/MimeKit/Cryptography/DkimVerifierBase.cs index 7d84e6469d..4f1495a4a4 100644 --- a/MimeKit/Cryptography/DkimVerifierBase.cs +++ b/MimeKit/Cryptography/DkimVerifierBase.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/Ed25519DigestSigner.cs b/MimeKit/Cryptography/Ed25519DigestSigner.cs index 544a681a61..e8096ac87e 100644 --- a/MimeKit/Cryptography/Ed25519DigestSigner.cs +++ b/MimeKit/Cryptography/Ed25519DigestSigner.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/EncryptionAlgorithm.cs b/MimeKit/Cryptography/EncryptionAlgorithm.cs index 24931cbfab..6d7f5118a9 100644 --- a/MimeKit/Cryptography/EncryptionAlgorithm.cs +++ b/MimeKit/Cryptography/EncryptionAlgorithm.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/GnuPGContext.cs b/MimeKit/Cryptography/GnuPGContext.cs index 8aee059039..f9cf5705c9 100644 --- a/MimeKit/Cryptography/GnuPGContext.cs +++ b/MimeKit/Cryptography/GnuPGContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/IApplicationPgpEncrypted.cs b/MimeKit/Cryptography/IApplicationPgpEncrypted.cs index cc08c9270f..ef51c33841 100644 --- a/MimeKit/Cryptography/IApplicationPgpEncrypted.cs +++ b/MimeKit/Cryptography/IApplicationPgpEncrypted.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/IApplicationPgpSignature.cs b/MimeKit/Cryptography/IApplicationPgpSignature.cs index 4b90bbc269..7ec01c3f68 100644 --- a/MimeKit/Cryptography/IApplicationPgpSignature.cs +++ b/MimeKit/Cryptography/IApplicationPgpSignature.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/IApplicationPkcs7Mime.cs b/MimeKit/Cryptography/IApplicationPkcs7Mime.cs index a396a82904..46363edc40 100644 --- a/MimeKit/Cryptography/IApplicationPkcs7Mime.cs +++ b/MimeKit/Cryptography/IApplicationPkcs7Mime.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/IApplicationPkcs7Signature.cs b/MimeKit/Cryptography/IApplicationPkcs7Signature.cs index 231418f198..93de6699c2 100644 --- a/MimeKit/Cryptography/IApplicationPkcs7Signature.cs +++ b/MimeKit/Cryptography/IApplicationPkcs7Signature.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/ICryptographyContext.cs b/MimeKit/Cryptography/ICryptographyContext.cs index 989ac864c6..446becf9f9 100644 --- a/MimeKit/Cryptography/ICryptographyContext.cs +++ b/MimeKit/Cryptography/ICryptographyContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/IDigitalCertificate.cs b/MimeKit/Cryptography/IDigitalCertificate.cs index d9f84fe435..b0faa319b3 100644 --- a/MimeKit/Cryptography/IDigitalCertificate.cs +++ b/MimeKit/Cryptography/IDigitalCertificate.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/IDigitalSignature.cs b/MimeKit/Cryptography/IDigitalSignature.cs index 32bae6e770..aa82bc7723 100644 --- a/MimeKit/Cryptography/IDigitalSignature.cs +++ b/MimeKit/Cryptography/IDigitalSignature.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/IDkimPublicKeyLocator.cs b/MimeKit/Cryptography/IDkimPublicKeyLocator.cs index 9dbb5ef226..cec41deac6 100644 --- a/MimeKit/Cryptography/IDkimPublicKeyLocator.cs +++ b/MimeKit/Cryptography/IDkimPublicKeyLocator.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/IMultipartEncrypted.cs b/MimeKit/Cryptography/IMultipartEncrypted.cs index ccd246b451..817d33138b 100644 --- a/MimeKit/Cryptography/IMultipartEncrypted.cs +++ b/MimeKit/Cryptography/IMultipartEncrypted.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/IMultipartSigned.cs b/MimeKit/Cryptography/IMultipartSigned.cs index 1b3f727cbc..9c5125f92f 100644 --- a/MimeKit/Cryptography/IMultipartSigned.cs +++ b/MimeKit/Cryptography/IMultipartSigned.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/ISecureMimeContext.cs b/MimeKit/Cryptography/ISecureMimeContext.cs index 8e74b08866..2267528f7a 100644 --- a/MimeKit/Cryptography/ISecureMimeContext.cs +++ b/MimeKit/Cryptography/ISecureMimeContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/IX509CertificateDatabase.cs b/MimeKit/Cryptography/IX509CertificateDatabase.cs index fce10a25d3..cf2196a2da 100644 --- a/MimeKit/Cryptography/IX509CertificateDatabase.cs +++ b/MimeKit/Cryptography/IX509CertificateDatabase.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/MultipartEncrypted.cs b/MimeKit/Cryptography/MultipartEncrypted.cs index 273e0bd1d4..b50a3e1672 100644 --- a/MimeKit/Cryptography/MultipartEncrypted.cs +++ b/MimeKit/Cryptography/MultipartEncrypted.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/MultipartSigned.cs b/MimeKit/Cryptography/MultipartSigned.cs index d8aa70e086..65d4cd702a 100644 --- a/MimeKit/Cryptography/MultipartSigned.cs +++ b/MimeKit/Cryptography/MultipartSigned.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/OpenPgpBlockFilter.cs b/MimeKit/Cryptography/OpenPgpBlockFilter.cs index 91ffdc5c3c..18d38d80f9 100644 --- a/MimeKit/Cryptography/OpenPgpBlockFilter.cs +++ b/MimeKit/Cryptography/OpenPgpBlockFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/OpenPgpContext.cs b/MimeKit/Cryptography/OpenPgpContext.cs index ea1221a76f..31db806748 100644 --- a/MimeKit/Cryptography/OpenPgpContext.cs +++ b/MimeKit/Cryptography/OpenPgpContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/OpenPgpDataType.cs b/MimeKit/Cryptography/OpenPgpDataType.cs index 760654961c..233a81cd59 100644 --- a/MimeKit/Cryptography/OpenPgpDataType.cs +++ b/MimeKit/Cryptography/OpenPgpDataType.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/OpenPgpDetectionFilter.cs b/MimeKit/Cryptography/OpenPgpDetectionFilter.cs index 8b0ee3bd31..c9cf2539ff 100644 --- a/MimeKit/Cryptography/OpenPgpDetectionFilter.cs +++ b/MimeKit/Cryptography/OpenPgpDetectionFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/OpenPgpDigitalCertificate.cs b/MimeKit/Cryptography/OpenPgpDigitalCertificate.cs index 732d55b35e..c2722b4106 100644 --- a/MimeKit/Cryptography/OpenPgpDigitalCertificate.cs +++ b/MimeKit/Cryptography/OpenPgpDigitalCertificate.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/OpenPgpDigitalSignature.cs b/MimeKit/Cryptography/OpenPgpDigitalSignature.cs index f59f91cbf0..0121a0440c 100644 --- a/MimeKit/Cryptography/OpenPgpDigitalSignature.cs +++ b/MimeKit/Cryptography/OpenPgpDigitalSignature.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/OpenPgpKeyCertification.cs b/MimeKit/Cryptography/OpenPgpKeyCertification.cs index 4805030292..769b0a9389 100644 --- a/MimeKit/Cryptography/OpenPgpKeyCertification.cs +++ b/MimeKit/Cryptography/OpenPgpKeyCertification.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/PrivateKeyNotFoundException.cs b/MimeKit/Cryptography/PrivateKeyNotFoundException.cs index 47050f372b..7c16696fa0 100644 --- a/MimeKit/Cryptography/PrivateKeyNotFoundException.cs +++ b/MimeKit/Cryptography/PrivateKeyNotFoundException.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/PublicKeyAlgorithm.cs b/MimeKit/Cryptography/PublicKeyAlgorithm.cs index b734bfdabf..5e11b79864 100644 --- a/MimeKit/Cryptography/PublicKeyAlgorithm.cs +++ b/MimeKit/Cryptography/PublicKeyAlgorithm.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/PublicKeyNotFoundException.cs b/MimeKit/Cryptography/PublicKeyNotFoundException.cs index 5cf5decd1f..4caa462a7f 100644 --- a/MimeKit/Cryptography/PublicKeyNotFoundException.cs +++ b/MimeKit/Cryptography/PublicKeyNotFoundException.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/RsaEncryptionPadding.cs b/MimeKit/Cryptography/RsaEncryptionPadding.cs index 03d009f5c3..f1fd41cf9d 100644 --- a/MimeKit/Cryptography/RsaEncryptionPadding.cs +++ b/MimeKit/Cryptography/RsaEncryptionPadding.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/RsaEncryptionPaddingScheme.cs b/MimeKit/Cryptography/RsaEncryptionPaddingScheme.cs index d478bf06c0..5d1600ee66 100644 --- a/MimeKit/Cryptography/RsaEncryptionPaddingScheme.cs +++ b/MimeKit/Cryptography/RsaEncryptionPaddingScheme.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/RsaSignaturePadding.cs b/MimeKit/Cryptography/RsaSignaturePadding.cs index b3b7e20b5d..a9c47e651b 100644 --- a/MimeKit/Cryptography/RsaSignaturePadding.cs +++ b/MimeKit/Cryptography/RsaSignaturePadding.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/RsaSignaturePaddingScheme.cs b/MimeKit/Cryptography/RsaSignaturePaddingScheme.cs index 04736ac2ad..814236a727 100644 --- a/MimeKit/Cryptography/RsaSignaturePaddingScheme.cs +++ b/MimeKit/Cryptography/RsaSignaturePaddingScheme.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/SQLServerCertificateDatabase.cs b/MimeKit/Cryptography/SQLServerCertificateDatabase.cs index ca9413b417..2a9c0e8803 100644 --- a/MimeKit/Cryptography/SQLServerCertificateDatabase.cs +++ b/MimeKit/Cryptography/SQLServerCertificateDatabase.cs @@ -3,7 +3,7 @@ // // Author: Rob Blackin // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/SecureMailboxAddress.cs b/MimeKit/Cryptography/SecureMailboxAddress.cs index 6c0388df3d..8a14ebbda1 100644 --- a/MimeKit/Cryptography/SecureMailboxAddress.cs +++ b/MimeKit/Cryptography/SecureMailboxAddress.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/SecureMimeContext.cs b/MimeKit/Cryptography/SecureMimeContext.cs index f9a071d8b9..3bccbfee1e 100644 --- a/MimeKit/Cryptography/SecureMimeContext.cs +++ b/MimeKit/Cryptography/SecureMimeContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/SecureMimeDigitalCertificate.cs b/MimeKit/Cryptography/SecureMimeDigitalCertificate.cs index a8dbf0df14..b61d74ddc6 100644 --- a/MimeKit/Cryptography/SecureMimeDigitalCertificate.cs +++ b/MimeKit/Cryptography/SecureMimeDigitalCertificate.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/SecureMimeDigitalSignature.cs b/MimeKit/Cryptography/SecureMimeDigitalSignature.cs index b970e84464..335b221e96 100644 --- a/MimeKit/Cryptography/SecureMimeDigitalSignature.cs +++ b/MimeKit/Cryptography/SecureMimeDigitalSignature.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/SecureMimeType.cs b/MimeKit/Cryptography/SecureMimeType.cs index 403023d316..bbcf52239c 100644 --- a/MimeKit/Cryptography/SecureMimeType.cs +++ b/MimeKit/Cryptography/SecureMimeType.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/SqlCertificateDatabase.cs b/MimeKit/Cryptography/SqlCertificateDatabase.cs index f596c61a0f..32afa93766 100644 --- a/MimeKit/Cryptography/SqlCertificateDatabase.cs +++ b/MimeKit/Cryptography/SqlCertificateDatabase.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/SqliteCertificateDatabase.cs b/MimeKit/Cryptography/SqliteCertificateDatabase.cs index c07128e036..89e12b0660 100644 --- a/MimeKit/Cryptography/SqliteCertificateDatabase.cs +++ b/MimeKit/Cryptography/SqliteCertificateDatabase.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/SubjectIdentifierType.cs b/MimeKit/Cryptography/SubjectIdentifierType.cs index ef3b00dfdf..d93df18fc8 100644 --- a/MimeKit/Cryptography/SubjectIdentifierType.cs +++ b/MimeKit/Cryptography/SubjectIdentifierType.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/TemporarySecureMimeContext.cs b/MimeKit/Cryptography/TemporarySecureMimeContext.cs index e71eedc5d4..b13f5ace76 100644 --- a/MimeKit/Cryptography/TemporarySecureMimeContext.cs +++ b/MimeKit/Cryptography/TemporarySecureMimeContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/WindowsSecureMimeContext.cs b/MimeKit/Cryptography/WindowsSecureMimeContext.cs index 020ca410f7..20f9176547 100644 --- a/MimeKit/Cryptography/WindowsSecureMimeContext.cs +++ b/MimeKit/Cryptography/WindowsSecureMimeContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/WindowsSecureMimeDigitalCertificate.cs b/MimeKit/Cryptography/WindowsSecureMimeDigitalCertificate.cs index 98891d77b8..a243c908c7 100644 --- a/MimeKit/Cryptography/WindowsSecureMimeDigitalCertificate.cs +++ b/MimeKit/Cryptography/WindowsSecureMimeDigitalCertificate.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/WindowsSecureMimeDigitalSignature.cs b/MimeKit/Cryptography/WindowsSecureMimeDigitalSignature.cs index dc90e50f08..e895421c1f 100644 --- a/MimeKit/Cryptography/WindowsSecureMimeDigitalSignature.cs +++ b/MimeKit/Cryptography/WindowsSecureMimeDigitalSignature.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/X509Certificate2Extensions.cs b/MimeKit/Cryptography/X509Certificate2Extensions.cs index 50a281e91d..3bc3f22c93 100644 --- a/MimeKit/Cryptography/X509Certificate2Extensions.cs +++ b/MimeKit/Cryptography/X509Certificate2Extensions.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/X509CertificateChain.cs b/MimeKit/Cryptography/X509CertificateChain.cs index 1431816581..133214fd2e 100644 --- a/MimeKit/Cryptography/X509CertificateChain.cs +++ b/MimeKit/Cryptography/X509CertificateChain.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/X509CertificateDatabase.cs b/MimeKit/Cryptography/X509CertificateDatabase.cs index 5d79260f24..2d516b87c7 100644 --- a/MimeKit/Cryptography/X509CertificateDatabase.cs +++ b/MimeKit/Cryptography/X509CertificateDatabase.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/X509CertificateRecord.cs b/MimeKit/Cryptography/X509CertificateRecord.cs index 39667bc1d8..2a66908e05 100644 --- a/MimeKit/Cryptography/X509CertificateRecord.cs +++ b/MimeKit/Cryptography/X509CertificateRecord.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/X509CertificateStore.cs b/MimeKit/Cryptography/X509CertificateStore.cs index 5b5ed396ac..7a999d798b 100644 --- a/MimeKit/Cryptography/X509CertificateStore.cs +++ b/MimeKit/Cryptography/X509CertificateStore.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/X509CrlRecord.cs b/MimeKit/Cryptography/X509CrlRecord.cs index 72319e08e3..b7ca5bba3f 100644 --- a/MimeKit/Cryptography/X509CrlRecord.cs +++ b/MimeKit/Cryptography/X509CrlRecord.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Cryptography/X509KeyUsageFlags.cs b/MimeKit/Cryptography/X509KeyUsageFlags.cs index eb0ff389dc..9febdf1e1d 100644 --- a/MimeKit/Cryptography/X509KeyUsageFlags.cs +++ b/MimeKit/Cryptography/X509KeyUsageFlags.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/DomainList.cs b/MimeKit/DomainList.cs index f9845c1cac..8e68187a8f 100644 --- a/MimeKit/DomainList.cs +++ b/MimeKit/DomainList.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/EncodingConstraint.cs b/MimeKit/EncodingConstraint.cs index f74d095a8b..21c9cefb6d 100644 --- a/MimeKit/EncodingConstraint.cs +++ b/MimeKit/EncodingConstraint.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/Base64Decoder.cs b/MimeKit/Encodings/Base64Decoder.cs index 5a588b6ca2..7098512871 100644 --- a/MimeKit/Encodings/Base64Decoder.cs +++ b/MimeKit/Encodings/Base64Decoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/Base64Encoder.cs b/MimeKit/Encodings/Base64Encoder.cs index 8c0ce6ffae..f7adbc6a90 100644 --- a/MimeKit/Encodings/Base64Encoder.cs +++ b/MimeKit/Encodings/Base64Encoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/HexDecoder.cs b/MimeKit/Encodings/HexDecoder.cs index 596d6b7e33..a0c85a1a83 100644 --- a/MimeKit/Encodings/HexDecoder.cs +++ b/MimeKit/Encodings/HexDecoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/HexEncoder.cs b/MimeKit/Encodings/HexEncoder.cs index 955bcb181a..2dfef9c196 100644 --- a/MimeKit/Encodings/HexEncoder.cs +++ b/MimeKit/Encodings/HexEncoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/IMimeDecoder.cs b/MimeKit/Encodings/IMimeDecoder.cs index cc42de7cb9..80a69edb78 100644 --- a/MimeKit/Encodings/IMimeDecoder.cs +++ b/MimeKit/Encodings/IMimeDecoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/IMimeEncoder.cs b/MimeKit/Encodings/IMimeEncoder.cs index b92ea4cb18..c34c53ef96 100644 --- a/MimeKit/Encodings/IMimeEncoder.cs +++ b/MimeKit/Encodings/IMimeEncoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/IPunycode.cs b/MimeKit/Encodings/IPunycode.cs index 09ad4660e7..f4082e2c54 100644 --- a/MimeKit/Encodings/IPunycode.cs +++ b/MimeKit/Encodings/IPunycode.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/PassThroughDecoder.cs b/MimeKit/Encodings/PassThroughDecoder.cs index 9135d89643..c8d7688c38 100644 --- a/MimeKit/Encodings/PassThroughDecoder.cs +++ b/MimeKit/Encodings/PassThroughDecoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/PassThroughEncoder.cs b/MimeKit/Encodings/PassThroughEncoder.cs index cad6089a4e..2dce2d2e4d 100644 --- a/MimeKit/Encodings/PassThroughEncoder.cs +++ b/MimeKit/Encodings/PassThroughEncoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/Punycode.cs b/MimeKit/Encodings/Punycode.cs index 8b67003131..58646c3281 100644 --- a/MimeKit/Encodings/Punycode.cs +++ b/MimeKit/Encodings/Punycode.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/QEncoder.cs b/MimeKit/Encodings/QEncoder.cs index e9e15dc0e1..7bf752eb5e 100644 --- a/MimeKit/Encodings/QEncoder.cs +++ b/MimeKit/Encodings/QEncoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/QuotedPrintableDecoder.cs b/MimeKit/Encodings/QuotedPrintableDecoder.cs index 3a54e426e0..fad6f96dbc 100644 --- a/MimeKit/Encodings/QuotedPrintableDecoder.cs +++ b/MimeKit/Encodings/QuotedPrintableDecoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/QuotedPrintableEncoder.cs b/MimeKit/Encodings/QuotedPrintableEncoder.cs index fbe3f2209f..94aaf645d1 100644 --- a/MimeKit/Encodings/QuotedPrintableEncoder.cs +++ b/MimeKit/Encodings/QuotedPrintableEncoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/UUDecoder.cs b/MimeKit/Encodings/UUDecoder.cs index ba916813f8..3ff8d7bc71 100644 --- a/MimeKit/Encodings/UUDecoder.cs +++ b/MimeKit/Encodings/UUDecoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/UUEncoder.cs b/MimeKit/Encodings/UUEncoder.cs index 154ea3d66c..22fa31de67 100644 --- a/MimeKit/Encodings/UUEncoder.cs +++ b/MimeKit/Encodings/UUEncoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/YDecoder.cs b/MimeKit/Encodings/YDecoder.cs index c58c83b172..a00f0d4512 100644 --- a/MimeKit/Encodings/YDecoder.cs +++ b/MimeKit/Encodings/YDecoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Encodings/YEncoder.cs b/MimeKit/Encodings/YEncoder.cs index d77aaf5fb9..f3a8b23139 100644 --- a/MimeKit/Encodings/YEncoder.cs +++ b/MimeKit/Encodings/YEncoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/ExperimentalMimeParser.cs b/MimeKit/ExperimentalMimeParser.cs index 08b22af852..8fe6d1dc5f 100644 --- a/MimeKit/ExperimentalMimeParser.cs +++ b/MimeKit/ExperimentalMimeParser.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/FormatOptions.cs b/MimeKit/FormatOptions.cs index f5871526b9..f69ba17392 100644 --- a/MimeKit/FormatOptions.cs +++ b/MimeKit/FormatOptions.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/GroupAddress.cs b/MimeKit/GroupAddress.cs index 3cbf0cb837..803fdd0027 100644 --- a/MimeKit/GroupAddress.cs +++ b/MimeKit/GroupAddress.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Header.cs b/MimeKit/Header.cs index 0c83c31713..3ebcce7c73 100644 --- a/MimeKit/Header.cs +++ b/MimeKit/Header.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/HeaderId.cs b/MimeKit/HeaderId.cs index 713efbf989..cb01fb5b46 100644 --- a/MimeKit/HeaderId.cs +++ b/MimeKit/HeaderId.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/HeaderList.cs b/MimeKit/HeaderList.cs index 891869e3a5..dc4fcf924b 100644 --- a/MimeKit/HeaderList.cs +++ b/MimeKit/HeaderList.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/HeaderListChangedEventArgs.cs b/MimeKit/HeaderListChangedEventArgs.cs index e1d228d0c0..a2781afa09 100644 --- a/MimeKit/HeaderListChangedEventArgs.cs +++ b/MimeKit/HeaderListChangedEventArgs.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/HeaderListCollection.cs b/MimeKit/HeaderListCollection.cs index f0481f916a..5833c8578c 100644 --- a/MimeKit/HeaderListCollection.cs +++ b/MimeKit/HeaderListCollection.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMessageDeliveryStatus.cs b/MimeKit/IMessageDeliveryStatus.cs index 150f962f44..c76e871715 100644 --- a/MimeKit/IMessageDeliveryStatus.cs +++ b/MimeKit/IMessageDeliveryStatus.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMessageDispositionNotification.cs b/MimeKit/IMessageDispositionNotification.cs index e3b8236518..aa38367f96 100644 --- a/MimeKit/IMessageDispositionNotification.cs +++ b/MimeKit/IMessageDispositionNotification.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMessageFeedbackReport.cs b/MimeKit/IMessageFeedbackReport.cs index c3a8479ba8..40cdbfc76c 100644 --- a/MimeKit/IMessageFeedbackReport.cs +++ b/MimeKit/IMessageFeedbackReport.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMessagePart.cs b/MimeKit/IMessagePart.cs index 2fe93f004c..8e80257d27 100644 --- a/MimeKit/IMessagePart.cs +++ b/MimeKit/IMessagePart.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMessagePartial.cs b/MimeKit/IMessagePartial.cs index d11a6dfbf6..45074c851a 100644 --- a/MimeKit/IMessagePartial.cs +++ b/MimeKit/IMessagePartial.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMimeContent.cs b/MimeKit/IMimeContent.cs index 7b04d0a770..53303e076b 100644 --- a/MimeKit/IMimeContent.cs +++ b/MimeKit/IMimeContent.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMimeEntity.cs b/MimeKit/IMimeEntity.cs index cc1bcc081a..b1dc487883 100644 --- a/MimeKit/IMimeEntity.cs +++ b/MimeKit/IMimeEntity.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMimeMessage.cs b/MimeKit/IMimeMessage.cs index 5007bebfb6..dfc0d4e5b6 100644 --- a/MimeKit/IMimeMessage.cs +++ b/MimeKit/IMimeMessage.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMimePart.cs b/MimeKit/IMimePart.cs index 5db3d57003..6565201352 100644 --- a/MimeKit/IMimePart.cs +++ b/MimeKit/IMimePart.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMultipart.cs b/MimeKit/IMultipart.cs index 24bd8dbe27..981d170c42 100644 --- a/MimeKit/IMultipart.cs +++ b/MimeKit/IMultipart.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMultipartAlternative.cs b/MimeKit/IMultipartAlternative.cs index e26eb2452b..3ffe201bb0 100644 --- a/MimeKit/IMultipartAlternative.cs +++ b/MimeKit/IMultipartAlternative.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMultipartRelated.cs b/MimeKit/IMultipartRelated.cs index e87c2620bc..11901d8902 100644 --- a/MimeKit/IMultipartRelated.cs +++ b/MimeKit/IMultipartRelated.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IMultipartReport.cs b/MimeKit/IMultipartReport.cs index 9b82150f5c..ebb2524d07 100644 --- a/MimeKit/IMultipartReport.cs +++ b/MimeKit/IMultipartReport.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/BoundStream.cs b/MimeKit/IO/BoundStream.cs index 220945f9f4..06ea17077f 100644 --- a/MimeKit/IO/BoundStream.cs +++ b/MimeKit/IO/BoundStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/ChainedStream.cs b/MimeKit/IO/ChainedStream.cs index b8f84fdb2e..71eeaa5040 100644 --- a/MimeKit/IO/ChainedStream.cs +++ b/MimeKit/IO/ChainedStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/FilteredStream.cs b/MimeKit/IO/FilteredStream.cs index 7144234cc3..5fa7ad009f 100644 --- a/MimeKit/IO/FilteredStream.cs +++ b/MimeKit/IO/FilteredStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/ArmoredFromFilter.cs b/MimeKit/IO/Filters/ArmoredFromFilter.cs index d8bc8090b5..da426f2c39 100644 --- a/MimeKit/IO/Filters/ArmoredFromFilter.cs +++ b/MimeKit/IO/Filters/ArmoredFromFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/BestEncodingFilter.cs b/MimeKit/IO/Filters/BestEncodingFilter.cs index 3720da7ab9..47bcd28c23 100644 --- a/MimeKit/IO/Filters/BestEncodingFilter.cs +++ b/MimeKit/IO/Filters/BestEncodingFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/CharsetFilter.cs b/MimeKit/IO/Filters/CharsetFilter.cs index a9ca036fa5..2e9afeb1c7 100644 --- a/MimeKit/IO/Filters/CharsetFilter.cs +++ b/MimeKit/IO/Filters/CharsetFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/DecoderFilter.cs b/MimeKit/IO/Filters/DecoderFilter.cs index 42466f822d..5229cc20a4 100644 --- a/MimeKit/IO/Filters/DecoderFilter.cs +++ b/MimeKit/IO/Filters/DecoderFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/Dos2UnixFilter.cs b/MimeKit/IO/Filters/Dos2UnixFilter.cs index 9de8829e65..d0d722a6ff 100644 --- a/MimeKit/IO/Filters/Dos2UnixFilter.cs +++ b/MimeKit/IO/Filters/Dos2UnixFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/EncoderFilter.cs b/MimeKit/IO/Filters/EncoderFilter.cs index f356521cc7..7fa95efc75 100644 --- a/MimeKit/IO/Filters/EncoderFilter.cs +++ b/MimeKit/IO/Filters/EncoderFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/IMimeFilter.cs b/MimeKit/IO/Filters/IMimeFilter.cs index 5bc116f3f1..d593fc7280 100644 --- a/MimeKit/IO/Filters/IMimeFilter.cs +++ b/MimeKit/IO/Filters/IMimeFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/MboxFromFilter.cs b/MimeKit/IO/Filters/MboxFromFilter.cs index cfcb97bae2..63fa5fadab 100644 --- a/MimeKit/IO/Filters/MboxFromFilter.cs +++ b/MimeKit/IO/Filters/MboxFromFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/MimeFilterBase.cs b/MimeKit/IO/Filters/MimeFilterBase.cs index afc0d6388e..7a59032ba4 100644 --- a/MimeKit/IO/Filters/MimeFilterBase.cs +++ b/MimeKit/IO/Filters/MimeFilterBase.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/PassThroughFilter.cs b/MimeKit/IO/Filters/PassThroughFilter.cs index 4bf82e1974..932e16807d 100644 --- a/MimeKit/IO/Filters/PassThroughFilter.cs +++ b/MimeKit/IO/Filters/PassThroughFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/TrailingWhitespaceFilter.cs b/MimeKit/IO/Filters/TrailingWhitespaceFilter.cs index 5895bc57ee..2eb215e041 100644 --- a/MimeKit/IO/Filters/TrailingWhitespaceFilter.cs +++ b/MimeKit/IO/Filters/TrailingWhitespaceFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/Filters/Unix2DosFilter.cs b/MimeKit/IO/Filters/Unix2DosFilter.cs index 379cd82f82..629b072052 100644 --- a/MimeKit/IO/Filters/Unix2DosFilter.cs +++ b/MimeKit/IO/Filters/Unix2DosFilter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/ICancellableStream.cs b/MimeKit/IO/ICancellableStream.cs index 5f36feefcd..c0875cc0cc 100644 --- a/MimeKit/IO/ICancellableStream.cs +++ b/MimeKit/IO/ICancellableStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/MeasuringStream.cs b/MimeKit/IO/MeasuringStream.cs index 9dbba58deb..d2bd29ba87 100644 --- a/MimeKit/IO/MeasuringStream.cs +++ b/MimeKit/IO/MeasuringStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/IO/MemoryBlockStream.cs b/MimeKit/IO/MemoryBlockStream.cs index b16c441206..b365eb6b67 100644 --- a/MimeKit/IO/MemoryBlockStream.cs +++ b/MimeKit/IO/MemoryBlockStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/ITextPart.cs b/MimeKit/ITextPart.cs index 607d799260..6926066e40 100644 --- a/MimeKit/ITextPart.cs +++ b/MimeKit/ITextPart.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/ITextRfc822Headers.cs b/MimeKit/ITextRfc822Headers.cs index 44c606619d..a6705d2d7b 100644 --- a/MimeKit/ITextRfc822Headers.cs +++ b/MimeKit/ITextRfc822Headers.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/InternetAddress.cs b/MimeKit/InternetAddress.cs index 3de89518ef..f2da64b137 100644 --- a/MimeKit/InternetAddress.cs +++ b/MimeKit/InternetAddress.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/InternetAddressList.cs b/MimeKit/InternetAddressList.cs index 122bbc16b9..f2dd9d8e74 100644 --- a/MimeKit/InternetAddressList.cs +++ b/MimeKit/InternetAddressList.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MailboxAddress.cs b/MimeKit/MailboxAddress.cs index afbcd954ac..53b18b2297 100644 --- a/MimeKit/MailboxAddress.cs +++ b/MimeKit/MailboxAddress.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MessageDeliveryStatus.cs b/MimeKit/MessageDeliveryStatus.cs index 03bf81ff08..2982bd0ccd 100644 --- a/MimeKit/MessageDeliveryStatus.cs +++ b/MimeKit/MessageDeliveryStatus.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MessageDispositionNotification.cs b/MimeKit/MessageDispositionNotification.cs index 60eac518f4..7c359bd55f 100644 --- a/MimeKit/MessageDispositionNotification.cs +++ b/MimeKit/MessageDispositionNotification.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MessageFeedbackReport.cs b/MimeKit/MessageFeedbackReport.cs index db6f201b77..1151c78623 100644 --- a/MimeKit/MessageFeedbackReport.cs +++ b/MimeKit/MessageFeedbackReport.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MessageIdList.cs b/MimeKit/MessageIdList.cs index 69c3045b5d..84c51926fd 100644 --- a/MimeKit/MessageIdList.cs +++ b/MimeKit/MessageIdList.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MessageImportance.cs b/MimeKit/MessageImportance.cs index 3cfd66a811..7c05bcdf11 100644 --- a/MimeKit/MessageImportance.cs +++ b/MimeKit/MessageImportance.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MessagePart.cs b/MimeKit/MessagePart.cs index d02a848b8c..f41e086eb7 100644 --- a/MimeKit/MessagePart.cs +++ b/MimeKit/MessagePart.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MessagePartial.cs b/MimeKit/MessagePartial.cs index e3c8aec7f3..673b226ae4 100644 --- a/MimeKit/MessagePartial.cs +++ b/MimeKit/MessagePartial.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MessagePriority.cs b/MimeKit/MessagePriority.cs index 9dcaddcd7d..b44b89fcc8 100644 --- a/MimeKit/MessagePriority.cs +++ b/MimeKit/MessagePriority.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeContent.cs b/MimeKit/MimeContent.cs index a22a971f38..c222f8162f 100644 --- a/MimeKit/MimeContent.cs +++ b/MimeKit/MimeContent.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeEntity.cs b/MimeKit/MimeEntity.cs index f42ab28bfe..38a9a45716 100644 --- a/MimeKit/MimeEntity.cs +++ b/MimeKit/MimeEntity.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeEntityBeginEventArgs.cs b/MimeKit/MimeEntityBeginEventArgs.cs index 47dec1904f..be176ec7ae 100644 --- a/MimeKit/MimeEntityBeginEventArgs.cs +++ b/MimeKit/MimeEntityBeginEventArgs.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeEntityConstructorArgs.cs b/MimeKit/MimeEntityConstructorArgs.cs index e6bf6a7fe6..24bd3f4d76 100644 --- a/MimeKit/MimeEntityConstructorArgs.cs +++ b/MimeKit/MimeEntityConstructorArgs.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeEntityEndEventArgs.cs b/MimeKit/MimeEntityEndEventArgs.cs index 6948fdfc75..022c18f754 100644 --- a/MimeKit/MimeEntityEndEventArgs.cs +++ b/MimeKit/MimeEntityEndEventArgs.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeFormat.cs b/MimeKit/MimeFormat.cs index f929ddd13c..306fa1cd80 100644 --- a/MimeKit/MimeFormat.cs +++ b/MimeKit/MimeFormat.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeIterator.cs b/MimeKit/MimeIterator.cs index 4f10a92a0f..fcd4ed761b 100644 --- a/MimeKit/MimeIterator.cs +++ b/MimeKit/MimeIterator.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeMessage.cs b/MimeKit/MimeMessage.cs index 4e60fcbf55..3254ac9496 100644 --- a/MimeKit/MimeMessage.cs +++ b/MimeKit/MimeMessage.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeMessageBeginEventArgs.cs b/MimeKit/MimeMessageBeginEventArgs.cs index 8afc97b585..3bff7f5487 100644 --- a/MimeKit/MimeMessageBeginEventArgs.cs +++ b/MimeKit/MimeMessageBeginEventArgs.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeMessageEndEventArgs.cs b/MimeKit/MimeMessageEndEventArgs.cs index d2cd5afa4f..a4e5dc4bf4 100644 --- a/MimeKit/MimeMessageEndEventArgs.cs +++ b/MimeKit/MimeMessageEndEventArgs.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeParser.cs b/MimeKit/MimeParser.cs index 60ed8dffb4..ec91197897 100644 --- a/MimeKit/MimeParser.cs +++ b/MimeKit/MimeParser.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimePart.cs b/MimeKit/MimePart.cs index 52cb5af023..ff2596347b 100644 --- a/MimeKit/MimePart.cs +++ b/MimeKit/MimePart.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeReader.cs b/MimeKit/MimeReader.cs index 56683c4be6..b354f69dee 100644 --- a/MimeKit/MimeReader.cs +++ b/MimeKit/MimeReader.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeTypes.cs b/MimeKit/MimeTypes.cs index b661cebc63..35c0d93c20 100644 --- a/MimeKit/MimeTypes.cs +++ b/MimeKit/MimeTypes.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MimeVisitor.cs b/MimeKit/MimeVisitor.cs index 6806b1f142..4c29c775fc 100644 --- a/MimeKit/MimeVisitor.cs +++ b/MimeKit/MimeVisitor.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Multipart.cs b/MimeKit/Multipart.cs index 8327f609d8..3fc477dc4a 100644 --- a/MimeKit/Multipart.cs +++ b/MimeKit/Multipart.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MultipartAlternative.cs b/MimeKit/MultipartAlternative.cs index cdcd4c397d..d319ae8649 100644 --- a/MimeKit/MultipartAlternative.cs +++ b/MimeKit/MultipartAlternative.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MultipartRelated.cs b/MimeKit/MultipartRelated.cs index a7a4c855e1..0997776f0f 100644 --- a/MimeKit/MultipartRelated.cs +++ b/MimeKit/MultipartRelated.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/MultipartReport.cs b/MimeKit/MultipartReport.cs index 781c539089..6159286369 100644 --- a/MimeKit/MultipartReport.cs +++ b/MimeKit/MultipartReport.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Parameter.cs b/MimeKit/Parameter.cs index ed96951d76..3fe7f680db 100644 --- a/MimeKit/Parameter.cs +++ b/MimeKit/Parameter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/ParameterEncodingMethod.cs b/MimeKit/ParameterEncodingMethod.cs index efd231c280..23fab93345 100644 --- a/MimeKit/ParameterEncodingMethod.cs +++ b/MimeKit/ParameterEncodingMethod.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/ParameterList.cs b/MimeKit/ParameterList.cs index 796833ed6c..a671bbcac9 100644 --- a/MimeKit/ParameterList.cs +++ b/MimeKit/ParameterList.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/ParseException.cs b/MimeKit/ParseException.cs index e47e6b519c..8e7abbc238 100644 --- a/MimeKit/ParseException.cs +++ b/MimeKit/ParseException.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/ParserOptions.cs b/MimeKit/ParserOptions.cs index b3f0f38653..c8ce404253 100644 --- a/MimeKit/ParserOptions.cs +++ b/MimeKit/ParserOptions.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Properties/AssemblyInfo.cs b/MimeKit/Properties/AssemblyInfo.cs index 99c616fc2c..b5b34de417 100644 --- a/MimeKit/Properties/AssemblyInfo.cs +++ b/MimeKit/Properties/AssemblyInfo.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/RfcComplianceMode.cs b/MimeKit/RfcComplianceMode.cs index 72dd665439..e0ea44a091 100644 --- a/MimeKit/RfcComplianceMode.cs +++ b/MimeKit/RfcComplianceMode.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/CharBuffer.cs b/MimeKit/Text/CharBuffer.cs index 3bdc6cb48c..8aa89b71ca 100644 --- a/MimeKit/Text/CharBuffer.cs +++ b/MimeKit/Text/CharBuffer.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/FlowedToHtml.cs b/MimeKit/Text/FlowedToHtml.cs index 3e202d759a..2bea24f5ee 100644 --- a/MimeKit/Text/FlowedToHtml.cs +++ b/MimeKit/Text/FlowedToHtml.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/FlowedToText.cs b/MimeKit/Text/FlowedToText.cs index a5dea97dfd..b972dbea17 100644 --- a/MimeKit/Text/FlowedToText.cs +++ b/MimeKit/Text/FlowedToText.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HeaderFooterFormat.cs b/MimeKit/Text/HeaderFooterFormat.cs index 63c8d4aecd..6fa6dd88e0 100644 --- a/MimeKit/Text/HeaderFooterFormat.cs +++ b/MimeKit/Text/HeaderFooterFormat.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlAttribute.cs b/MimeKit/Text/HtmlAttribute.cs index a31a6b655c..2f3a6f7940 100644 --- a/MimeKit/Text/HtmlAttribute.cs +++ b/MimeKit/Text/HtmlAttribute.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlAttributeCollection.cs b/MimeKit/Text/HtmlAttributeCollection.cs index 6327f89d08..11b8cef6fb 100644 --- a/MimeKit/Text/HtmlAttributeCollection.cs +++ b/MimeKit/Text/HtmlAttributeCollection.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlAttributeId.cs b/MimeKit/Text/HtmlAttributeId.cs index 684f525a71..2df289a249 100644 --- a/MimeKit/Text/HtmlAttributeId.cs +++ b/MimeKit/Text/HtmlAttributeId.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlEntityDecoder.cs b/MimeKit/Text/HtmlEntityDecoder.cs index e294efb28c..290b81f4a4 100644 --- a/MimeKit/Text/HtmlEntityDecoder.cs +++ b/MimeKit/Text/HtmlEntityDecoder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlEntityDecoder.g.cs b/MimeKit/Text/HtmlEntityDecoder.g.cs index d8afad7c77..bf05b86cc4 100644 --- a/MimeKit/Text/HtmlEntityDecoder.g.cs +++ b/MimeKit/Text/HtmlEntityDecoder.g.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlNamespace.cs b/MimeKit/Text/HtmlNamespace.cs index 2156ad5271..b024b091f9 100644 --- a/MimeKit/Text/HtmlNamespace.cs +++ b/MimeKit/Text/HtmlNamespace.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlTagCallback.cs b/MimeKit/Text/HtmlTagCallback.cs index 1c15c3e4ac..1a46ba2caf 100644 --- a/MimeKit/Text/HtmlTagCallback.cs +++ b/MimeKit/Text/HtmlTagCallback.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlTagContext.cs b/MimeKit/Text/HtmlTagContext.cs index 68e0ed5d83..ef0ceaab0e 100644 --- a/MimeKit/Text/HtmlTagContext.cs +++ b/MimeKit/Text/HtmlTagContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlTagId.cs b/MimeKit/Text/HtmlTagId.cs index 6bcef3d099..582f4ddff5 100644 --- a/MimeKit/Text/HtmlTagId.cs +++ b/MimeKit/Text/HtmlTagId.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlTextPreviewer.cs b/MimeKit/Text/HtmlTextPreviewer.cs index cb7636be71..2903b5d8ba 100644 --- a/MimeKit/Text/HtmlTextPreviewer.cs +++ b/MimeKit/Text/HtmlTextPreviewer.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlToHtml.cs b/MimeKit/Text/HtmlToHtml.cs index cd70798635..6c8ae370fc 100644 --- a/MimeKit/Text/HtmlToHtml.cs +++ b/MimeKit/Text/HtmlToHtml.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlToken.cs b/MimeKit/Text/HtmlToken.cs index f7ab4ff44e..ff4c981a78 100644 --- a/MimeKit/Text/HtmlToken.cs +++ b/MimeKit/Text/HtmlToken.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlTokenKind.cs b/MimeKit/Text/HtmlTokenKind.cs index 57394c1806..005fba4ba2 100644 --- a/MimeKit/Text/HtmlTokenKind.cs +++ b/MimeKit/Text/HtmlTokenKind.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlTokenizer.cs b/MimeKit/Text/HtmlTokenizer.cs index 16e1c373fa..f53aabcf61 100644 --- a/MimeKit/Text/HtmlTokenizer.cs +++ b/MimeKit/Text/HtmlTokenizer.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlTokenizerState.cs b/MimeKit/Text/HtmlTokenizerState.cs index e110b906c4..46192706c4 100644 --- a/MimeKit/Text/HtmlTokenizerState.cs +++ b/MimeKit/Text/HtmlTokenizerState.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlUtils.cs b/MimeKit/Text/HtmlUtils.cs index c0a90490a3..2a7c2fac66 100644 --- a/MimeKit/Text/HtmlUtils.cs +++ b/MimeKit/Text/HtmlUtils.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlWriter.cs b/MimeKit/Text/HtmlWriter.cs index a5d8326f96..c60c5efb7d 100644 --- a/MimeKit/Text/HtmlWriter.cs +++ b/MimeKit/Text/HtmlWriter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/HtmlWriterState.cs b/MimeKit/Text/HtmlWriterState.cs index 5b4f3485d5..9b2e6eff30 100644 --- a/MimeKit/Text/HtmlWriterState.cs +++ b/MimeKit/Text/HtmlWriterState.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/PlainTextPreviewer.cs b/MimeKit/Text/PlainTextPreviewer.cs index 93ce58cb5e..34c0f7b8ba 100644 --- a/MimeKit/Text/PlainTextPreviewer.cs +++ b/MimeKit/Text/PlainTextPreviewer.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/TextConverter.cs b/MimeKit/Text/TextConverter.cs index 7d329ad9a8..cf87c6778f 100644 --- a/MimeKit/Text/TextConverter.cs +++ b/MimeKit/Text/TextConverter.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/TextEncodingConfidence.cs b/MimeKit/Text/TextEncodingConfidence.cs index 40b8ec9b31..b10472aea7 100644 --- a/MimeKit/Text/TextEncodingConfidence.cs +++ b/MimeKit/Text/TextEncodingConfidence.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/TextFormat.cs b/MimeKit/Text/TextFormat.cs index e3b73ff44e..4320e95f1f 100644 --- a/MimeKit/Text/TextFormat.cs +++ b/MimeKit/Text/TextFormat.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/TextPreviewer.cs b/MimeKit/Text/TextPreviewer.cs index 1d27519374..e6b1471d97 100644 --- a/MimeKit/Text/TextPreviewer.cs +++ b/MimeKit/Text/TextPreviewer.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/TextToFlowed.cs b/MimeKit/Text/TextToFlowed.cs index 14e60c13ca..a50f04e01a 100644 --- a/MimeKit/Text/TextToFlowed.cs +++ b/MimeKit/Text/TextToFlowed.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/TextToHtml.cs b/MimeKit/Text/TextToHtml.cs index ba09b99e12..2a9b6d14ff 100644 --- a/MimeKit/Text/TextToHtml.cs +++ b/MimeKit/Text/TextToHtml.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/TextToText.cs b/MimeKit/Text/TextToText.cs index 707ee521f8..56ab7f759d 100644 --- a/MimeKit/Text/TextToText.cs +++ b/MimeKit/Text/TextToText.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/Trie.cs b/MimeKit/Text/Trie.cs index 74a5e17914..d2ef5e9271 100644 --- a/MimeKit/Text/Trie.cs +++ b/MimeKit/Text/Trie.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Text/UrlScanner.cs b/MimeKit/Text/UrlScanner.cs index 1ded925f90..27ae3ad927 100644 --- a/MimeKit/Text/UrlScanner.cs +++ b/MimeKit/Text/UrlScanner.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/TextPart.cs b/MimeKit/TextPart.cs index 7c1f95df7c..3d1238640c 100644 --- a/MimeKit/TextPart.cs +++ b/MimeKit/TextPart.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/TextRfc822Headers.cs b/MimeKit/TextRfc822Headers.cs index 7bcea94250..9588c9b99f 100644 --- a/MimeKit/TextRfc822Headers.cs +++ b/MimeKit/TextRfc822Headers.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/ITnefPart.cs b/MimeKit/Tnef/ITnefPart.cs index 2905cc67c9..83f2efeff2 100644 --- a/MimeKit/Tnef/ITnefPart.cs +++ b/MimeKit/Tnef/ITnefPart.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/RtfCompressedToRtf.cs b/MimeKit/Tnef/RtfCompressedToRtf.cs index 2b992ff8bc..6e6e0a6a2f 100644 --- a/MimeKit/Tnef/RtfCompressedToRtf.cs +++ b/MimeKit/Tnef/RtfCompressedToRtf.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/RtfCompressionMode.cs b/MimeKit/Tnef/RtfCompressionMode.cs index 75fba70fc7..1d3240e4af 100644 --- a/MimeKit/Tnef/RtfCompressionMode.cs +++ b/MimeKit/Tnef/RtfCompressionMode.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefAttachFlags.cs b/MimeKit/Tnef/TnefAttachFlags.cs index 985eebd0e4..7b1ac0494e 100644 --- a/MimeKit/Tnef/TnefAttachFlags.cs +++ b/MimeKit/Tnef/TnefAttachFlags.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefAttachMethod.cs b/MimeKit/Tnef/TnefAttachMethod.cs index 22636e9d18..c42c0bc98c 100644 --- a/MimeKit/Tnef/TnefAttachMethod.cs +++ b/MimeKit/Tnef/TnefAttachMethod.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefAttributeLevel.cs b/MimeKit/Tnef/TnefAttributeLevel.cs index 346ca67549..4b6bef5d6d 100644 --- a/MimeKit/Tnef/TnefAttributeLevel.cs +++ b/MimeKit/Tnef/TnefAttributeLevel.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefAttributeTag.cs b/MimeKit/Tnef/TnefAttributeTag.cs index 18b57b4704..bd467f9960 100644 --- a/MimeKit/Tnef/TnefAttributeTag.cs +++ b/MimeKit/Tnef/TnefAttributeTag.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefComplianceMode.cs b/MimeKit/Tnef/TnefComplianceMode.cs index 5dc2c0d54f..b4a1d20242 100644 --- a/MimeKit/Tnef/TnefComplianceMode.cs +++ b/MimeKit/Tnef/TnefComplianceMode.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefComplianceStatus.cs b/MimeKit/Tnef/TnefComplianceStatus.cs index fbd0a3070e..a0c44a0ed0 100644 --- a/MimeKit/Tnef/TnefComplianceStatus.cs +++ b/MimeKit/Tnef/TnefComplianceStatus.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefException.cs b/MimeKit/Tnef/TnefException.cs index ea8f221d97..90c3b025e6 100644 --- a/MimeKit/Tnef/TnefException.cs +++ b/MimeKit/Tnef/TnefException.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefNameId.cs b/MimeKit/Tnef/TnefNameId.cs index 7384e20778..12cbe62cc9 100644 --- a/MimeKit/Tnef/TnefNameId.cs +++ b/MimeKit/Tnef/TnefNameId.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefNameIdKind.cs b/MimeKit/Tnef/TnefNameIdKind.cs index bad9a4375a..a6c61e595d 100644 --- a/MimeKit/Tnef/TnefNameIdKind.cs +++ b/MimeKit/Tnef/TnefNameIdKind.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefPart.cs b/MimeKit/Tnef/TnefPart.cs index f617e44f68..ea04d95de2 100644 --- a/MimeKit/Tnef/TnefPart.cs +++ b/MimeKit/Tnef/TnefPart.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefPropertyId.cs b/MimeKit/Tnef/TnefPropertyId.cs index d8907d9d6c..09f45f5c64 100644 --- a/MimeKit/Tnef/TnefPropertyId.cs +++ b/MimeKit/Tnef/TnefPropertyId.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefPropertyReader.cs b/MimeKit/Tnef/TnefPropertyReader.cs index 53cc056f13..8b83e449d8 100644 --- a/MimeKit/Tnef/TnefPropertyReader.cs +++ b/MimeKit/Tnef/TnefPropertyReader.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefPropertyTag.cs b/MimeKit/Tnef/TnefPropertyTag.cs index 71df99686b..57b7a49b55 100644 --- a/MimeKit/Tnef/TnefPropertyTag.cs +++ b/MimeKit/Tnef/TnefPropertyTag.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefPropertyType.cs b/MimeKit/Tnef/TnefPropertyType.cs index dda0d2a704..9f52982743 100644 --- a/MimeKit/Tnef/TnefPropertyType.cs +++ b/MimeKit/Tnef/TnefPropertyType.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefReader.cs b/MimeKit/Tnef/TnefReader.cs index c450560594..74dad483a9 100644 --- a/MimeKit/Tnef/TnefReader.cs +++ b/MimeKit/Tnef/TnefReader.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Tnef/TnefReaderStream.cs b/MimeKit/Tnef/TnefReaderStream.cs index 8676e87fc0..becbf0be43 100644 --- a/MimeKit/Tnef/TnefReaderStream.cs +++ b/MimeKit/Tnef/TnefReaderStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/BufferPool.cs b/MimeKit/Utils/BufferPool.cs index e2b0cc7627..0dbb7b6185 100644 --- a/MimeKit/Utils/BufferPool.cs +++ b/MimeKit/Utils/BufferPool.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/ByteArrayBuilder.cs b/MimeKit/Utils/ByteArrayBuilder.cs index 1ee11ee4f2..a8e9ec097e 100644 --- a/MimeKit/Utils/ByteArrayBuilder.cs +++ b/MimeKit/Utils/ByteArrayBuilder.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/ByteExtensions.cs b/MimeKit/Utils/ByteExtensions.cs index 727368c946..fbc508cd14 100644 --- a/MimeKit/Utils/ByteExtensions.cs +++ b/MimeKit/Utils/ByteExtensions.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/CharsetUtils.cs b/MimeKit/Utils/CharsetUtils.cs index 54f4de97ec..a5a579911e 100644 --- a/MimeKit/Utils/CharsetUtils.cs +++ b/MimeKit/Utils/CharsetUtils.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/Crc32.cs b/MimeKit/Utils/Crc32.cs index d666dee663..8b3eec7198 100644 --- a/MimeKit/Utils/Crc32.cs +++ b/MimeKit/Utils/Crc32.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/DateUtils.cs b/MimeKit/Utils/DateUtils.cs index 81e0c96233..b8b5cf842a 100644 --- a/MimeKit/Utils/DateUtils.cs +++ b/MimeKit/Utils/DateUtils.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/MimeUtils.cs b/MimeKit/Utils/MimeUtils.cs index cebb6400ff..f10bf2892e 100644 --- a/MimeKit/Utils/MimeUtils.cs +++ b/MimeKit/Utils/MimeUtils.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/OptimizedOrdinalComparer.cs b/MimeKit/Utils/OptimizedOrdinalComparer.cs index 078db75049..be927f7287 100644 --- a/MimeKit/Utils/OptimizedOrdinalComparer.cs +++ b/MimeKit/Utils/OptimizedOrdinalComparer.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/PackedByteArray.cs b/MimeKit/Utils/PackedByteArray.cs index 78503eafc2..b290a842a2 100644 --- a/MimeKit/Utils/PackedByteArray.cs +++ b/MimeKit/Utils/PackedByteArray.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/ParseUtils.cs b/MimeKit/Utils/ParseUtils.cs index f7f76b8412..714eb864ff 100644 --- a/MimeKit/Utils/ParseUtils.cs +++ b/MimeKit/Utils/ParseUtils.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/ReadOnlySpanExtensions.cs b/MimeKit/Utils/ReadOnlySpanExtensions.cs index 82383bfbe1..2b8f67dcbb 100644 --- a/MimeKit/Utils/ReadOnlySpanExtensions.cs +++ b/MimeKit/Utils/ReadOnlySpanExtensions.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/Rfc2047.cs b/MimeKit/Utils/Rfc2047.cs index 09fae8d74e..a33efd6634 100644 --- a/MimeKit/Utils/Rfc2047.cs +++ b/MimeKit/Utils/Rfc2047.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/Utils/StringBuilderExtensions.cs b/MimeKit/Utils/StringBuilderExtensions.cs index d3bf4725cf..f7231f330d 100644 --- a/MimeKit/Utils/StringBuilderExtensions.cs +++ b/MimeKit/Utils/StringBuilderExtensions.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/MimeKit/XMessagePriority.cs b/MimeKit/XMessagePriority.cs index 49a26d81d5..18e85fcf77 100644 --- a/MimeKit/XMessagePriority.cs +++ b/MimeKit/XMessagePriority.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/ArgumentExceptionTests.cs b/UnitTests/ArgumentExceptionTests.cs index c5c614010b..4ee88baf25 100644 --- a/UnitTests/ArgumentExceptionTests.cs +++ b/UnitTests/ArgumentExceptionTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -152,7 +152,7 @@ static void AssertParseArguments (Type type) if (bufferIndex == 1) { tie = Assert.Throws (() => method.Invoke (null, args), "{0}.{1} did not throw an exception when options was null.", type.Name, method.Name); - Assert.IsInstanceOf (tie.InnerException); + Assert.That (tie.InnerException, Is.InstanceOf ()); ex = (ArgumentException) tie.InnerException; Assert.That (ex.ParamName, Is.EqualTo ("options")); @@ -163,7 +163,7 @@ static void AssertParseArguments (Type type) args[bufferIndex] = null; tie = Assert.Throws (() => method.Invoke (null, args), "{0}.{1} did not throw an exception when {2} was null.", type.Name, method.Name, parameters[bufferIndex].Name); - Assert.IsInstanceOf (tie.InnerException); + Assert.That (tie.InnerException, Is.InstanceOf ()); ex = (ArgumentException) tie.InnerException; Assert.That (ex.ParamName, Is.EqualTo (parameters[bufferIndex].Name)); args[bufferIndex] = buf; @@ -175,7 +175,7 @@ static void AssertParseArguments (Type type) tie = Assert.Throws (() => method.Invoke (null, args), "{0}.{1} did not throw ArgumentOutOfRangeException when {2} was -1.", type.Name, method.Name, parameters[idx].Name); - Assert.IsInstanceOf (tie.InnerException); + Assert.That (tie.InnerException, Is.InstanceOf ()); ex = (ArgumentException) tie.InnerException; Assert.That (ex.ParamName, Is.EqualTo (parameters[idx].Name)); @@ -183,7 +183,7 @@ static void AssertParseArguments (Type type) tie = Assert.Throws (() => method.Invoke (null, args), "{0}.{1} did not throw an exception when {2} was > length.", type.Name, method.Name, parameters[idx].Name); - Assert.IsInstanceOf (tie.InnerException); + Assert.That(tie.InnerException, Is.InstanceOf()); ex = (ArgumentException) tie.InnerException; Assert.That (ex.ParamName, Is.EqualTo (parameters[idx].Name)); @@ -196,7 +196,7 @@ static void AssertParseArguments (Type type) tie = Assert.Throws (() => method.Invoke (null, args), "{0}.{1} did not throw an exception when {2} was -1.", type.Name, method.Name, parameters[idx].Name); - Assert.IsInstanceOf (tie.InnerException); + Assert.That(tie.InnerException, Is.InstanceOf()); ex = (ArgumentException) tie.InnerException; Assert.That (ex.ParamName, Is.EqualTo (parameters[idx].Name)); @@ -204,7 +204,7 @@ static void AssertParseArguments (Type type) tie = Assert.Throws (() => method.Invoke (null, args), "{0}.{1} did not throw an exception when {2} was > length.", type.Name, method.Name, parameters[idx].Name); - Assert.IsInstanceOf (tie.InnerException); + Assert.That(tie.InnerException, Is.InstanceOf()); ex = (ArgumentException) tie.InnerException; Assert.That (ex.ParamName, Is.EqualTo (parameters[idx].Name)); diff --git a/UnitTests/AssortedTests.cs b/UnitTests/AssortedTests.cs index 8cce876389..46471a0511 100644 --- a/UnitTests/AssortedTests.cs +++ b/UnitTests/AssortedTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/AttachmentCollectionTests.cs b/UnitTests/AttachmentCollectionTests.cs index 7b638d7d00..9ba3e4fbfc 100644 --- a/UnitTests/AttachmentCollectionTests.cs +++ b/UnitTests/AttachmentCollectionTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/ConstructorTests.cs b/UnitTests/ConstructorTests.cs index 975bbdb98b..c4a9744947 100644 --- a/UnitTests/ConstructorTests.cs +++ b/UnitTests/ConstructorTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/ContentDispositionTests.cs b/UnitTests/ContentDispositionTests.cs index 19092d3656..8d7d918ffd 100644 --- a/UnitTests/ContentDispositionTests.cs +++ b/UnitTests/ContentDispositionTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/ContentTypeTests.cs b/UnitTests/ContentTypeTests.cs index 2100e008d1..49af4258f8 100644 --- a/UnitTests/ContentTypeTests.cs +++ b/UnitTests/ContentTypeTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/ApplicationPkcs7MimeTests.cs b/UnitTests/Cryptography/ApplicationPkcs7MimeTests.cs index 64c8d5d839..2cbea4365a 100644 --- a/UnitTests/Cryptography/ApplicationPkcs7MimeTests.cs +++ b/UnitTests/Cryptography/ApplicationPkcs7MimeTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -417,13 +417,13 @@ public void TestEncryptMailboxes () encrypted = ApplicationPkcs7Mime.Encrypt (mailboxes, entity); decrypted = encrypted.Decrypt (ctx); - Assert.IsInstanceOf (decrypted, "Decrypted from Encrypt(mailboxes, entity)"); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted from Encrypt(mailboxes, entity)"); text = (TextPart) decrypted; Assert.That (text.Text, Is.EqualTo (entity.Text), "Decrypted text"); encrypted = ApplicationPkcs7Mime.Encrypt (ctx, mailboxes, entity); decrypted = encrypted.Decrypt (ctx); - Assert.IsInstanceOf (decrypted, "Encrypt(ctx, mailboxes, entity)"); + Assert.That (decrypted, Is.InstanceOf (), "Encrypt(ctx, mailboxes, entity)"); text = (TextPart) decrypted; Assert.That (text.Text, Is.EqualTo (entity.Text), "Decrypted text"); } @@ -447,13 +447,13 @@ public async Task TestEncryptMailboxesAsync () encrypted = await ApplicationPkcs7Mime.EncryptAsync (mailboxes, entity).ConfigureAwait (false); decrypted = await encrypted.DecryptAsync (ctx).ConfigureAwait (false); - Assert.IsInstanceOf (decrypted, "Decrypted from EncryptAsync(mailboxes, entity)"); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted from EncryptAsync(mailboxes, entity)"); text = (TextPart) decrypted; Assert.That (text.Text, Is.EqualTo (entity.Text), "Decrypted text"); encrypted = await ApplicationPkcs7Mime.EncryptAsync (ctx, mailboxes, entity).ConfigureAwait (false); decrypted = await encrypted.DecryptAsync (ctx).ConfigureAwait (false); - Assert.IsInstanceOf (decrypted, "EncryptAsync(ctx, mailboxes, entity)"); + Assert.That (decrypted, Is.InstanceOf (), "EncryptAsync(ctx, mailboxes, entity)"); text = (TextPart) decrypted; Assert.That (text.Text, Is.EqualTo (entity.Text), "Decrypted text"); } @@ -464,7 +464,7 @@ void AssertSignResults (SMimeCertificate certificate, SecureMimeContext ctx, App { var signatures = signed.Verify (ctx, out var encapsulated); - Assert.IsInstanceOf (encapsulated, "TextPart"); + Assert.That (encapsulated, Is.InstanceOf (), "TextPart"); Assert.That (((TextPart) encapsulated).Text, Is.EqualTo (entity.Text), "Text"); Assert.That (signatures.Count, Is.EqualTo (1), "Signature count"); @@ -568,7 +568,7 @@ void AssertSignAndEncryptResults (SMimeCertificate certificate, SecureMimeContex { var decrypted = encrypted.Decrypt (ctx); - Assert.IsInstanceOf (decrypted, "MultipartSigned"); + Assert.That (decrypted, Is.InstanceOf (), "MultipartSigned"); var signed = (MultipartSigned) decrypted; Assert.That (signed.Count, Is.EqualTo (2), "MultipartSigned count"); @@ -577,7 +577,7 @@ void AssertSignAndEncryptResults (SMimeCertificate certificate, SecureMimeContex var signatures = signed.Verify (ctx); - Assert.IsInstanceOf (encapsulated, "TextPart"); + Assert.That (encapsulated, Is.InstanceOf (), "TextPart"); Assert.That (((TextPart) encapsulated).Text, Is.EqualTo (entity.Text), "Text"); Assert.That (signatures.Count, Is.EqualTo (1), "Signature count"); @@ -617,7 +617,7 @@ async Task AssertSignAndEncryptResultsAsync (SMimeCertificate certificate, Secur { var decrypted = await encrypted.DecryptAsync (ctx).ConfigureAwait (false); - Assert.IsInstanceOf (decrypted, "MultipartSigned"); + Assert.That (decrypted, Is.InstanceOf (), "MultipartSigned"); var signed = (MultipartSigned) decrypted; Assert.That (signed.Count, Is.EqualTo (2), "MultipartSigned count"); @@ -626,7 +626,7 @@ async Task AssertSignAndEncryptResultsAsync (SMimeCertificate certificate, Secur var signatures = await signed.VerifyAsync (ctx).ConfigureAwait (false); - Assert.IsInstanceOf (encapsulated, "TextPart"); + Assert.That (encapsulated, Is.InstanceOf (), "TextPart"); Assert.That (((TextPart) encapsulated).Text, Is.EqualTo (entity.Text), "Text"); Assert.That (signatures.Count, Is.EqualTo (1), "Signature count"); diff --git a/UnitTests/Cryptography/ArcSignerTests.cs b/UnitTests/Cryptography/ArcSignerTests.cs index 0b66f164f9..9d508482d2 100644 --- a/UnitTests/Cryptography/ArcSignerTests.cs +++ b/UnitTests/Cryptography/ArcSignerTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/ArcVerifierTests.cs b/UnitTests/Cryptography/ArcVerifierTests.cs index e7a0ed3bab..6f9ff339df 100644 --- a/UnitTests/Cryptography/ArcVerifierTests.cs +++ b/UnitTests/Cryptography/ArcVerifierTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/AsymmetricAlgorithmExtensionTests.cs b/UnitTests/Cryptography/AsymmetricAlgorithmExtensionTests.cs index a98b4da559..0630b519cc 100644 --- a/UnitTests/Cryptography/AsymmetricAlgorithmExtensionTests.cs +++ b/UnitTests/Cryptography/AsymmetricAlgorithmExtensionTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/AuthenticationResultsTests.cs b/UnitTests/Cryptography/AuthenticationResultsTests.cs index f61a1c7ec3..8ad6b2a496 100644 --- a/UnitTests/Cryptography/AuthenticationResultsTests.cs +++ b/UnitTests/Cryptography/AuthenticationResultsTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/BouncyCastleSecureMimeContextTests.cs b/UnitTests/Cryptography/BouncyCastleSecureMimeContextTests.cs index d4e00753e5..776447037a 100644 --- a/UnitTests/Cryptography/BouncyCastleSecureMimeContextTests.cs +++ b/UnitTests/Cryptography/BouncyCastleSecureMimeContextTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/CertificateExtensionTests.cs b/UnitTests/Cryptography/CertificateExtensionTests.cs index eaf9ad32c4..1a5a5d3533 100644 --- a/UnitTests/Cryptography/CertificateExtensionTests.cs +++ b/UnitTests/Cryptography/CertificateExtensionTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/CmsRecipientTests.cs b/UnitTests/Cryptography/CmsRecipientTests.cs index 43c27cdd57..3ca5713c40 100644 --- a/UnitTests/Cryptography/CmsRecipientTests.cs +++ b/UnitTests/Cryptography/CmsRecipientTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/CmsSignerTests.cs b/UnitTests/Cryptography/CmsSignerTests.cs index b639b47f4e..b09b659c45 100644 --- a/UnitTests/Cryptography/CmsSignerTests.cs +++ b/UnitTests/Cryptography/CmsSignerTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/DefaultSecureMimeContextTests.cs b/UnitTests/Cryptography/DefaultSecureMimeContextTests.cs index bf995be04b..5075093d5f 100644 --- a/UnitTests/Cryptography/DefaultSecureMimeContextTests.cs +++ b/UnitTests/Cryptography/DefaultSecureMimeContextTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/DkimPublicKeyLocator.cs b/UnitTests/Cryptography/DkimPublicKeyLocator.cs index c29ba327af..b39323c28a 100644 --- a/UnitTests/Cryptography/DkimPublicKeyLocator.cs +++ b/UnitTests/Cryptography/DkimPublicKeyLocator.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/DkimPublicKeyLocatorBaseTests.cs b/UnitTests/Cryptography/DkimPublicKeyLocatorBaseTests.cs index eac12dc55c..f82430f982 100644 --- a/UnitTests/Cryptography/DkimPublicKeyLocatorBaseTests.cs +++ b/UnitTests/Cryptography/DkimPublicKeyLocatorBaseTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -72,7 +72,7 @@ public void TestParseMissingKParamDefaultsToRsa () var key = locator.LocatePublicKey ("dns/txt", "example.org", "no-k-param"); - Assert.IsInstanceOf (key); + Assert.That (key, Is.InstanceOf ()); } } } diff --git a/UnitTests/Cryptography/DkimRelaxedBodyFilterTests.cs b/UnitTests/Cryptography/DkimRelaxedBodyFilterTests.cs index 406cc262b1..ebbd8142bb 100644 --- a/UnitTests/Cryptography/DkimRelaxedBodyFilterTests.cs +++ b/UnitTests/Cryptography/DkimRelaxedBodyFilterTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/DkimTests.cs b/UnitTests/Cryptography/DkimTests.cs index 4935e69976..44403f991a 100644 --- a/UnitTests/Cryptography/DkimTests.cs +++ b/UnitTests/Cryptography/DkimTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/DummyArcSigner.cs b/UnitTests/Cryptography/DummyArcSigner.cs index 4ce4285d8c..bc2f211987 100644 --- a/UnitTests/Cryptography/DummyArcSigner.cs +++ b/UnitTests/Cryptography/DummyArcSigner.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/DummyOpenPgpContext.cs b/UnitTests/Cryptography/DummyOpenPgpContext.cs index 5bbf9b6835..980a19d7d3 100644 --- a/UnitTests/Cryptography/DummyOpenPgpContext.cs +++ b/UnitTests/Cryptography/DummyOpenPgpContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/LdapUriTests.cs b/UnitTests/Cryptography/LdapUriTests.cs index cf9cc89669..da653d9b5f 100644 --- a/UnitTests/Cryptography/LdapUriTests.cs +++ b/UnitTests/Cryptography/LdapUriTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/PgpMimeTests.cs b/UnitTests/Cryptography/PgpMimeTests.cs index e40c069ef0..ed23bb227d 100644 --- a/UnitTests/Cryptography/PgpMimeTests.cs +++ b/UnitTests/Cryptography/PgpMimeTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -228,7 +228,7 @@ public void TestMimeMessageSign () // ok, now we can sign message.Sign (ctx); - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); var multipart = (MultipartSigned) message.Body; @@ -237,8 +237,8 @@ public void TestMimeMessageSign () var protocol = multipart.ContentType.Parameters["protocol"]; Assert.That (protocol, Is.EqualTo (ctx.SignatureProtocol), "The multipart/signed protocol does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf(), "The second child is not a detached signature."); var signatures = multipart.Verify (ctx); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -283,7 +283,7 @@ public async Task TestMimeMessageSignAsync () // ok, now we can sign message.Sign (ctx); - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); var multipart = (MultipartSigned) message.Body; @@ -292,8 +292,8 @@ public async Task TestMimeMessageSignAsync () var protocol = multipart.ContentType.Parameters["protocol"]; Assert.That (protocol, Is.EqualTo (ctx.SignatureProtocol), "The multipart/signed protocol does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = await multipart.VerifyAsync (ctx); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -396,8 +396,8 @@ public void TestMultipartSignedSignUsingKeys () Assert.That (algorithm, Is.EqualTo (digest), "The multipart/signed micalg does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = multipart.Verify (); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -444,8 +444,8 @@ public async Task TestMultipartSignedSignUsingKeysAsync () Assert.That (algorithm, Is.EqualTo (digest), "The multipart/signed micalg does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = await multipart.VerifyAsync (); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -483,7 +483,7 @@ public void TestMimeMessageEncrypt () message.Encrypt (ctx); - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); var encrypted = (MultipartEncrypted) message.Body; @@ -492,7 +492,7 @@ public void TestMimeMessageEncrypt () var decrypted = encrypted.Decrypt (ctx); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); // now do the same thing, but encrypt to the Resent-To headers @@ -508,7 +508,7 @@ public void TestMimeMessageEncrypt () message.Encrypt (ctx); - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); encrypted = (MultipartEncrypted) message.Body; @@ -517,7 +517,7 @@ public void TestMimeMessageEncrypt () decrypted = encrypted.Decrypt (ctx); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -543,7 +543,7 @@ public async Task TestMimeMessageEncryptAsync () await message.EncryptAsync (ctx); - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); var encrypted = (MultipartEncrypted) message.Body; @@ -553,7 +553,7 @@ public async Task TestMimeMessageEncryptAsync () // TODO: implement DecryptAsync var decrypted = encrypted.Decrypt (ctx); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); // now do the same thing, but encrypt to the Resent-To headers @@ -569,7 +569,7 @@ public async Task TestMimeMessageEncryptAsync () await message.EncryptAsync (ctx); - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); encrypted = (MultipartEncrypted) message.Body; @@ -579,7 +579,7 @@ public async Task TestMimeMessageEncryptAsync () // TODO: implement DecryptAsync decrypted = encrypted.Decrypt (ctx); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -646,18 +646,18 @@ public void TestMultipartEncryptedEncrypt () var entity = MimeEntity.Load (stream); - Assert.IsInstanceOf (entity, "Encrypted part is not the expected type"); + Assert.That (entity, Is.InstanceOf (), "Encrypted part is not the expected type"); encrypted = (MultipartEncrypted) entity; - Assert.IsInstanceOf (encrypted[0], "First child of multipart/encrypted is not the expected type"); - Assert.IsInstanceOf (encrypted[1], "Second child of multipart/encrypted is not the expected type"); + Assert.That (encrypted[0], Is.InstanceOf (), "First child of multipart/encrypted is not the expected type"); + Assert.That (encrypted[1], Is.InstanceOf (), "Second child of multipart/encrypted is not the expected type"); Assert.That (encrypted[1].ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "Second child of multipart/encrypted is not the expected mime-type"); } var decrypted = encrypted.Decrypt (); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } @@ -675,19 +675,19 @@ public async Task TestMultipartEncryptedEncryptAsync () var entity = await MimeEntity.LoadAsync (stream); - Assert.IsInstanceOf (entity, "Encrypted part is not the expected type"); + Assert.That (entity, Is.InstanceOf (), "Encrypted part is not the expected type"); encrypted = (MultipartEncrypted) entity; - Assert.IsInstanceOf (encrypted[0], "First child of multipart/encrypted is not the expected type"); - Assert.IsInstanceOf (encrypted[1], "Second child of multipart/encrypted is not the expected type"); + Assert.That (encrypted[0], Is.InstanceOf (), "First child of multipart/encrypted is not the expected type"); + Assert.That (encrypted[1], Is.InstanceOf (), "Second child of multipart/encrypted is not the expected type"); Assert.That (encrypted[1].ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "Second child of multipart/encrypted is not the expected mime-type"); } // TODO: implement DecryptAsync var decrypted = encrypted.Decrypt (); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } @@ -709,7 +709,7 @@ public void TestMultipartEncryptedEncryptUsingKeys () var decrypted = encrypted.Decrypt (); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } @@ -732,7 +732,7 @@ public async Task TestMultipartEncryptedEncryptUsingKeysAsync () // TODO: implement DecryptAsync var decrypted = encrypted.Decrypt (); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } @@ -754,7 +754,7 @@ public void TestMultipartEncryptedEncryptAlgorithm () var decrypted = encrypted.Decrypt (ctx); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -779,7 +779,7 @@ public async Task TestMultipartEncryptedEncryptAlgorithmAsync () // TODO: implement DecryptAsync var decrypted = encrypted.Decrypt (ctx); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -807,7 +807,7 @@ public void TestMultipartEncryptedEncryptAlgorithmUsingKeys () var decrypted = encrypted.Decrypt (); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -835,7 +835,7 @@ public async Task TestMultipartEncryptedEncryptAlgorithmUsingKeysAsync () // TODO: implement DecryptAsync var decrypted = encrypted.Decrypt (); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -862,7 +862,7 @@ public void TestMimeMessageSignAndEncrypt () message.SignAndEncrypt (ctx); - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); var encrypted = (MultipartEncrypted) message.Body; @@ -871,7 +871,7 @@ public void TestMimeMessageSignAndEncrypt () var decrypted = encrypted.Decrypt (ctx, out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -898,7 +898,7 @@ public void TestMimeMessageSignAndEncrypt () message.SignAndEncrypt (ctx); - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); encrypted = (MultipartEncrypted) message.Body; @@ -907,7 +907,7 @@ public void TestMimeMessageSignAndEncrypt () decrypted = encrypted.Decrypt (ctx, out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -945,7 +945,7 @@ public async Task TestMimeMessageSignAndEncryptAsync () await message.SignAndEncryptAsync (ctx); - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); var encrypted = (MultipartEncrypted) message.Body; @@ -955,7 +955,7 @@ public async Task TestMimeMessageSignAndEncryptAsync () // TODO: implement DecryptAsync var decrypted = encrypted.Decrypt (ctx, out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -982,7 +982,7 @@ public async Task TestMimeMessageSignAndEncryptAsync () await message.SignAndEncryptAsync (ctx); - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); encrypted = (MultipartEncrypted) message.Body; @@ -992,7 +992,7 @@ public async Task TestMimeMessageSignAndEncryptAsync () // TODO: implement DecryptAsync decrypted = encrypted.Decrypt (ctx, out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1022,7 +1022,7 @@ public void TestMultipartEncryptedSignAndEncrypt () var decrypted = encrypted.Decrypt (out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1052,7 +1052,7 @@ public async Task TestMultipartEncryptedSignAndEncryptAsync () // TODO: implement DecryptAsync var decrypted = encrypted.Decrypt (out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1088,7 +1088,7 @@ public void TestMultipartEncryptedSignAndEncryptUsingKeys () var decrypted = encrypted.Decrypt (out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1125,7 +1125,7 @@ public async Task TestMultipartEncryptedSignAndEncryptUsingKeysAsync () // TODO: implement DecryptAsync var decrypted = encrypted.Decrypt (out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1154,7 +1154,7 @@ public void TestMultipartEncryptedSignAndEncryptAlgorithm () var decrypted = encrypted.Decrypt (out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1184,7 +1184,7 @@ public async Task TestMultipartEncryptedSignAndEncryptAlgorithmAsync () // TODO: implement DecryptAsync var decrypted = encrypted.Decrypt (out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1220,7 +1220,7 @@ public void TestMultipartEncryptedSignAndEncryptAlgorithmUsingKeys () var decrypted = encrypted.Decrypt (out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1257,7 +1257,7 @@ public async Task TestMultipartEncryptedSignAndEncryptAlgorithmUsingKeysAsync () // TODO: implement DecryptAsync var decrypted = encrypted.Decrypt (out signatures); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1287,8 +1287,8 @@ public void TestAutoKeyRetrieve () Assert.That (micalg, Is.EqualTo ("pgp-sha1"), "The multipart/signed micalg does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That(multipart[0], Is.InstanceOf(), "The first child is not a text part."); + Assert.That(multipart[1], Is.InstanceOf(), "The second child is not a detached signature."); DigitalSignatureCollection signatures; @@ -1335,8 +1335,8 @@ public async Task TestAutoKeyRetrieveAsync () Assert.That (micalg, Is.EqualTo ("pgp-sha1"), "The multipart/signed micalg does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That(multipart[0], Is.InstanceOf(), "The first child is not a text part."); + Assert.That(multipart[1], Is.InstanceOf(), "The second child is not a detached signature."); DigitalSignatureCollection signatures; @@ -1380,13 +1380,13 @@ public void TestExport () var exported = ctx.Export (new [] { self }); Assert.That (exported, Is.Not.Null, "The exported MIME part should not be null."); - Assert.IsInstanceOf (exported, "The exported MIME part should be a MimePart."); + Assert.That(exported, Is.InstanceOf(), "The exported MIME part should be a MimePart."); Assert.That (exported.ContentType.MimeType, Is.EqualTo ("application/pgp-keys")); exported = ctx.Export (keys); Assert.That (exported, Is.Not.Null, "The exported MIME part should not be null."); - Assert.IsInstanceOf (exported, "The exported MIME part should be a MimePart."); + Assert.That(exported, Is.InstanceOf(), "The exported MIME part should be a MimePart."); Assert.That (exported.ContentType.MimeType, Is.EqualTo ("application/pgp-keys")); using (var stream = new MemoryStream ()) { @@ -1423,13 +1423,13 @@ public async Task TestExportAsync () var exported = await ctx.ExportAsync (new[] { self }); Assert.That (exported, Is.Not.Null, "The exported MIME part should not be null."); - Assert.IsInstanceOf (exported, "The exported MIME part should be a MimePart."); + Assert.That(exported, Is.InstanceOf(), "The exported MIME part should be a MimePart."); Assert.That (exported.ContentType.MimeType, Is.EqualTo ("application/pgp-keys")); exported = await ctx.ExportAsync (keys); Assert.That (exported, Is.Not.Null, "The exported MIME part should not be null."); - Assert.IsInstanceOf (exported, "The exported MIME part should be a MimePart."); + Assert.That(exported, Is.InstanceOf(), "The exported MIME part should be a MimePart."); Assert.That (exported.ContentType.MimeType, Is.EqualTo ("application/pgp-keys")); using (var stream = new MemoryStream ()) { diff --git a/UnitTests/Cryptography/RsaEncryptionPaddingTests.cs b/UnitTests/Cryptography/RsaEncryptionPaddingTests.cs index 39abb6202a..758395edab 100644 --- a/UnitTests/Cryptography/RsaEncryptionPaddingTests.cs +++ b/UnitTests/Cryptography/RsaEncryptionPaddingTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/RsaSignaturePaddingTests.cs b/UnitTests/Cryptography/RsaSignaturePaddingTests.cs index 7231ae6acc..a079063337 100644 --- a/UnitTests/Cryptography/RsaSignaturePaddingTests.cs +++ b/UnitTests/Cryptography/RsaSignaturePaddingTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/SecureMimeDigitalCertificateTests.cs b/UnitTests/Cryptography/SecureMimeDigitalCertificateTests.cs index 2a85087859..b596ef450f 100644 --- a/UnitTests/Cryptography/SecureMimeDigitalCertificateTests.cs +++ b/UnitTests/Cryptography/SecureMimeDigitalCertificateTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/SecureMimeTests.cs b/UnitTests/Cryptography/SecureMimeTests.cs index a6f263d7df..64d2dbb641 100644 --- a/UnitTests/Cryptography/SecureMimeTests.cs +++ b/UnitTests/Cryptography/SecureMimeTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -470,7 +470,7 @@ public void TestSecureMimeCompression () var decompressed = compressed.Decompress (); - Assert.IsInstanceOf (decompressed, "Decompressed part is not the expected type."); + Assert.That (decompressed, Is.InstanceOf (), "Decompressed part is not the expected type."); Assert.That (((TextPart) decompressed).Text, Is.EqualTo (original.Text), "Decompressed content is not the same as the original."); } @@ -487,7 +487,7 @@ public async Task TestSecureMimeCompressionAsync () var decompressed = await compressed.DecompressAsync (); - Assert.IsInstanceOf (decompressed, "Decompressed part is not the expected type."); + Assert.That (decompressed, Is.InstanceOf (), "Decompressed part is not the expected type."); Assert.That (((TextPart) decompressed).Text, Is.EqualTo (original.Text), "Decompressed content is not the same as the original."); } @@ -505,7 +505,7 @@ public void TestSecureMimeCompressionWithContext () var decompressed = compressed.Decompress (ctx); - Assert.IsInstanceOf (decompressed, "Decompressed part is not the expected type."); + Assert.That (decompressed, Is.InstanceOf (), "Decompressed part is not the expected type."); Assert.That (((TextPart) decompressed).Text, Is.EqualTo (original.Text), "Decompressed content is not the same as the original."); using (var stream = new MemoryStream ()) { @@ -518,7 +518,7 @@ public void TestSecureMimeCompressionWithContext () stream.Position = 0; decompressed = MimeEntity.Load (stream); - Assert.IsInstanceOf (decompressed, "Decompressed part is not the expected type."); + Assert.That (decompressed, Is.InstanceOf (), "Decompressed part is not the expected type."); Assert.That (((TextPart) decompressed).Text, Is.EqualTo (original.Text), "Decompressed content is not the same as the original."); } } @@ -538,7 +538,7 @@ public async Task TestSecureMimeCompressionWithContextAsync () var decompressed = await compressed.DecompressAsync (ctx); - Assert.IsInstanceOf (decompressed, "Decompressed part is not the expected type."); + Assert.That (decompressed, Is.InstanceOf (), "Decompressed part is not the expected type."); Assert.That (((TextPart) decompressed).Text, Is.EqualTo (original.Text), "Decompressed content is not the same as the original."); using (var stream = new MemoryStream ()) { @@ -551,7 +551,7 @@ public async Task TestSecureMimeCompressionWithContextAsync () stream.Position = 0; decompressed = await MimeEntity.LoadAsync (stream); - Assert.IsInstanceOf (decompressed, "Decompressed part is not the expected type."); + Assert.That (decompressed, Is.InstanceOf (), "Decompressed part is not the expected type."); Assert.That (((TextPart) decompressed).Text, Is.EqualTo (original.Text), "Decompressed content is not the same as the original."); } } @@ -578,7 +578,7 @@ public virtual void TestSecureMimeEncapsulatedSigning () var signatures = signed.Verify (out var extracted); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -634,7 +634,7 @@ public virtual async Task TestSecureMimeEncapsulatedSigningAsync () var signatures = signed.Verify (out extracted); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -733,7 +733,7 @@ public virtual void TestSecureMimeEncapsulatedSigningWithContext () var signatures = signed.Verify (ctx, out extracted); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -743,7 +743,7 @@ public virtual void TestSecureMimeEncapsulatedSigningWithContext () using (var stream = ctx.Verify (signedData, out signatures)) extracted = MimeEntity.Load (stream); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -771,7 +771,7 @@ public virtual async Task TestSecureMimeEncapsulatedSigningWithContextAsync () var signatures = signed.Verify (ctx, out extracted); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -781,7 +781,7 @@ public virtual async Task TestSecureMimeEncapsulatedSigningWithContextAsync () using (var stream = ctx.Verify (signedData, out signatures)) extracted = await MimeEntity.LoadAsync (stream); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -808,7 +808,7 @@ public virtual void TestSecureMimeEncapsulatedSigningWithCmsSigner () var signatures = signed.Verify (out extracted); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -855,7 +855,7 @@ public virtual async Task TestSecureMimeEncapsulatedSigningWithCmsSignerAsync () var signatures = signed.Verify (out extracted); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -903,7 +903,7 @@ public virtual void TestSecureMimeEncapsulatedSigningWithContextAndCmsSigner () var signatures = signed.Verify (ctx, out extracted); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -913,7 +913,7 @@ public virtual void TestSecureMimeEncapsulatedSigningWithContextAndCmsSigner () using (var stream = ctx.Verify (signedData, out signatures)) extracted = MimeEntity.Load (stream); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -941,7 +941,7 @@ public virtual async Task TestSecureMimeEncapsulatedSigningWithContextAndCmsSign var signatures = signed.Verify (ctx, out extracted); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -951,7 +951,7 @@ public virtual async Task TestSecureMimeEncapsulatedSigningWithContextAndCmsSign using (var stream = ctx.Verify (signedData, out signatures)) extracted = await MimeEntity.LoadAsync (stream); - Assert.IsInstanceOf (extracted, "Extracted part is not the expected type."); + Assert.That (extracted, Is.InstanceOf (), "Extracted part is not the expected type."); Assert.That (((TextPart) extracted).Text, Is.EqualTo (cleartext.Text), "Extracted content is not the same as the original."); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -978,8 +978,8 @@ public virtual void TestSecureMimeSigningWithCmsSigner () var protocol = multipart.ContentType.Parameters["protocol"]; Assert.That (protocol, Is.EqualTo ("application/pkcs7-signature"), "The multipart/signed protocol does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = multipart.Verify (); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1032,8 +1032,8 @@ public virtual async Task TestSecureMimeSigningWithCmsSignerAsync () var protocol = multipart.ContentType.Parameters["protocol"]; Assert.That (protocol, Is.EqualTo ("application/pkcs7-signature"), "The multipart/signed protocol does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = await multipart.VerifyAsync (); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1087,8 +1087,8 @@ public virtual void TestSecureMimeSigningWithContextAndCmsSigner () var protocol = multipart.ContentType.Parameters["protocol"]; Assert.That (protocol, Is.EqualTo (ctx.SignatureProtocol), "The multipart/signed protocol does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = multipart.Verify (ctx); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1158,8 +1158,8 @@ public virtual async Task TestSecureMimeSigningWithContextAndCmsSignerAsync () var protocol = multipart.ContentType.Parameters["protocol"]; Assert.That (protocol, Is.EqualTo (ctx.SignatureProtocol), "The multipart/signed protocol does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = await multipart.VerifyAsync (ctx); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1235,8 +1235,8 @@ public virtual void TestSecureMimeSigningWithRsaSsaPss () var protocol = multipart.ContentType.Parameters["protocol"]; Assert.That (protocol, Is.EqualTo ("application/pkcs7-signature"), "The multipart/signed protocol does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = multipart.Verify (); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1294,8 +1294,8 @@ public virtual async Task TestSecureMimeSigningWithRsaSsaPssAsync () var protocol = multipart.ContentType.Parameters["protocol"]; Assert.That (protocol, Is.EqualTo ("application/pkcs7-signature"), "The multipart/signed protocol does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = await multipart.VerifyAsync (); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1348,7 +1348,7 @@ public virtual void TestSecureMimeMessageSigning () message.Sign (ctx); - Assert.IsInstanceOf (message.Body, "The message body should be a multipart/signed."); + Assert.That (message.Body, Is.InstanceOf (), "The message body should be a multipart/signed."); var multipart = (MultipartSigned) message.Body; @@ -1357,8 +1357,8 @@ public virtual void TestSecureMimeMessageSigning () var protocol = multipart.ContentType.Parameters["protocol"]; Assert.That (protocol, Is.EqualTo (ctx.SignatureProtocol), "The multipart/signed protocol does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = multipart.Verify (ctx); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1429,7 +1429,7 @@ public virtual async Task TestSecureMimeMessageSigningAsync () await message.SignAsync (ctx); - Assert.IsInstanceOf (message.Body, "The message body should be a multipart/signed."); + Assert.That (message.Body, Is.InstanceOf (), "The message body should be a multipart/signed."); var multipart = (MultipartSigned) message.Body; @@ -1438,8 +1438,8 @@ public virtual async Task TestSecureMimeMessageSigningAsync () var protocol = multipart.ContentType.Parameters["protocol"]; Assert.That (protocol, Is.EqualTo (ctx.SignatureProtocol), "The multipart/signed protocol does not match."); - Assert.IsInstanceOf (multipart[0], "The first child is not a text part."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[0], Is.InstanceOf (), "The first child is not a text part."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); var signatures = await multipart.VerifyAsync (ctx); Assert.That (signatures.Count, Is.EqualTo (1), "Verify returned an unexpected number of signatures."); @@ -1502,14 +1502,14 @@ public virtual void TestSecureMimeVerifyThunderbird () } using (var ctx = CreateContext ()) { - Assert.IsInstanceOf (message.Body, "The message body should be a multipart/signed."); + Assert.That (message.Body, Is.InstanceOf (), "The message body should be a multipart/signed."); var multipart = (MultipartSigned) message.Body; var protocol = multipart.ContentType.Parameters["protocol"]?.Trim (); Assert.That (ctx.Supports (protocol), Is.True, "The multipart/signed protocol is not supported."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); // Note: this fails in WindowsSecureMimeContext var signatures = multipart.Verify (ctx); @@ -1539,7 +1539,7 @@ public virtual void TestSecureMimeVerifyThunderbird () } catch (DigitalSignatureVerifyException ex) { if (ctx is WindowsSecureMimeContext) { if (Environment.OSVersion.Platform != PlatformID.Win32NT) - Assert.IsInstanceOf (ex.InnerException); + Assert.That (ex.InnerException, Is.InstanceOf ()); else Assert.That (ex.InnerException.Message, Is.EqualTo (ExpiredCertificateMessage)); } else { @@ -1560,14 +1560,14 @@ public virtual async Task TestSecureMimeVerifyThunderbirdAsync () } using (var ctx = CreateContext ()) { - Assert.IsInstanceOf (message.Body, "The message body should be a multipart/signed."); + Assert.That (message.Body, Is.InstanceOf (), "The message body should be a multipart/signed."); var multipart = (MultipartSigned) message.Body; var protocol = multipart.ContentType.Parameters["protocol"]?.Trim (); Assert.That (ctx.Supports (protocol), Is.True, "The multipart/signed protocol is not supported."); - Assert.IsInstanceOf (multipart[1], "The second child is not a detached signature."); + Assert.That (multipart[1], Is.InstanceOf (), "The second child is not a detached signature."); // Note: this fails in WindowsSecureMimeContext var signatures = await multipart.VerifyAsync (ctx); @@ -1597,7 +1597,7 @@ public virtual async Task TestSecureMimeVerifyThunderbirdAsync () } catch (DigitalSignatureVerifyException ex) { if (ctx is WindowsSecureMimeContext) { if (Environment.OSVersion.Platform != PlatformID.Win32NT) - Assert.IsInstanceOf (ex.InnerException); + Assert.That (ex.InnerException, Is.InstanceOf ()); else Assert.That (ex.InnerException.Message, Is.EqualTo (ExpiredCertificateMessage)); } else { @@ -1626,7 +1626,7 @@ public virtual void TestSecureMimeMessageEncryption () message.Encrypt (ctx); - Assert.IsInstanceOf (message.Body, "The message body should be an application/pkcs7-mime part."); + Assert.That (message.Body, Is.InstanceOf (), "The message body should be an application/pkcs7-mime part."); var encrypted = (ApplicationPkcs7Mime) message.Body; @@ -1634,7 +1634,7 @@ public virtual void TestSecureMimeMessageEncryption () var decrypted = encrypted.Decrypt (ctx); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -1661,7 +1661,7 @@ public virtual async Task TestSecureMimeMessageEncryptionAsync () await message.EncryptAsync (ctx); - Assert.IsInstanceOf (message.Body, "The message body should be an application/pkcs7-mime part."); + Assert.That (message.Body, Is.InstanceOf (), "The message body should be an application/pkcs7-mime part."); var encrypted = (ApplicationPkcs7Mime) message.Body; @@ -1669,7 +1669,7 @@ public virtual async Task TestSecureMimeMessageEncryptionAsync () var decrypted = await encrypted.DecryptAsync (ctx); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -1693,7 +1693,7 @@ public virtual void TestSecureMimeEncryption () var decrypted = encrypted.Decrypt (); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -1716,7 +1716,7 @@ public virtual async Task TestSecureMimeEncryptionAsync () var decrypted = await encrypted.DecryptAsync (); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -1748,7 +1748,7 @@ public virtual void TestSecureMimeEncryptionWithContext () var decrypted = MimeEntity.Load (stream); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -1782,7 +1782,7 @@ public virtual async Task TestSecureMimeEncryptionWithContextAsync () var decrypted = await MimeEntity.LoadAsync (stream); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -1878,7 +1878,7 @@ public virtual void TestSecureMimeEncryptionWithAlgorithm () var decrypted = MimeEntity.Load (stream); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -1975,7 +1975,7 @@ public virtual async Task TestSecureMimeEncryptionWithAlgorithmAsync () var decrypted = await MimeEntity.LoadAsync (stream); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -2019,7 +2019,7 @@ public virtual void TestSecureMimeEncryptionWithRsaesOaep (DigestAlgorithm hashA var decrypted = MimeEntity.Load (stream); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -2061,7 +2061,7 @@ public virtual async Task TestSecureMimeEncryptionWithRsaesOaepAsync (DigestAlgo var decrypted = await MimeEntity.LoadAsync (stream); - Assert.IsInstanceOf (decrypted, "Decrypted part is not the expected type."); + Assert.That (decrypted, Is.InstanceOf (), "Decrypted part is not the expected type."); Assert.That (((TextPart) decrypted).Text, Is.EqualTo (body.Text), "Decrypted content is not the same as the original."); } } @@ -2099,11 +2099,11 @@ public void TestSecureMimeDecryptThunderbird () // The decrypted part should be a multipart/mixed with a text/plain part and an image attachment, // very much like the thunderbird-signed.txt message. - Assert.IsInstanceOf (decrypted, "Expected the decrypted part to be a Multipart."); + Assert.That (decrypted, Is.InstanceOf (), "Expected the decrypted part to be a Multipart."); var multipart = (Multipart) decrypted; - Assert.IsInstanceOf (multipart[0], "Expected the first part of the decrypted multipart to be a TextPart."); - Assert.IsInstanceOf (multipart[1], "Expected the second part of the decrypted multipart to be a MimePart."); + Assert.That (multipart[0], Is.InstanceOf (), "Expected the first part of the decrypted multipart to be a TextPart."); + Assert.That (multipart[1], Is.InstanceOf (), "Expected the second part of the decrypted multipart to be a MimePart."); } } @@ -2139,11 +2139,11 @@ public async Task TestSecureMimeDecryptThunderbirdAsync () // The decrypted part should be a multipart/mixed with a text/plain part and an image attachment, // very much like the thunderbird-signed.txt message. - Assert.IsInstanceOf (decrypted, "Expected the decrypted part to be a Multipart."); + Assert.That (decrypted, Is.InstanceOf (), "Expected the decrypted part to be a Multipart."); var multipart = (Multipart) decrypted; - Assert.IsInstanceOf (multipart[0], "Expected the first part of the decrypted multipart to be a TextPart."); - Assert.IsInstanceOf (multipart[1], "Expected the second part of the decrypted multipart to be a MimePart."); + Assert.That (multipart[0], Is.InstanceOf (), "Expected the first part of the decrypted multipart to be a TextPart."); + Assert.That (multipart[1], Is.InstanceOf (), "Expected the second part of the decrypted multipart to be a MimePart."); } } @@ -2166,7 +2166,7 @@ public virtual void TestSecureMimeSignAndEncrypt () using (var ctx = CreateContext ()) { message.SignAndEncrypt (ctx); - Assert.IsInstanceOf (message.Body, "The message body should be an application/pkcs7-mime part."); + Assert.That (message.Body, Is.InstanceOf (), "The message body should be an application/pkcs7-mime part."); encrypted = (ApplicationPkcs7Mime) message.Body; @@ -2177,11 +2177,11 @@ public virtual void TestSecureMimeSignAndEncrypt () var decrypted = encrypted.Decrypt (ctx); // The decrypted part should be a multipart/signed - Assert.IsInstanceOf (decrypted, "Expected the decrypted part to be a multipart/signed."); + Assert.That (decrypted, Is.InstanceOf (), "Expected the decrypted part to be a multipart/signed."); var signed = (MultipartSigned) decrypted; - Assert.IsInstanceOf (signed[0], "Expected the first part of the multipart/signed to be a multipart."); - Assert.IsInstanceOf (signed[1], "Expected second part of the multipart/signed to be a pkcs7-signature."); + Assert.That (signed[0], Is.InstanceOf (), "Expected the first part of the multipart/signed to be a multipart."); + Assert.That (signed[1], Is.InstanceOf (), "Expected second part of the multipart/signed to be a pkcs7-signature."); var extracted = (TextPart) signed[0]; Assert.That (extracted.Text, Is.EqualTo (body.Text), "The decrypted text part's text does not match the original."); @@ -2256,7 +2256,7 @@ public virtual async Task TestSecureMimeSignAndEncryptAsync () using (var ctx = CreateContext ()) { await message.SignAndEncryptAsync (ctx); - Assert.IsInstanceOf (message.Body, "The message body should be an application/pkcs7-mime part."); + Assert.That (message.Body, Is.InstanceOf (), "The message body should be an application/pkcs7-mime part."); encrypted = (ApplicationPkcs7Mime) message.Body; @@ -2267,11 +2267,11 @@ public virtual async Task TestSecureMimeSignAndEncryptAsync () var decrypted = await encrypted.DecryptAsync (ctx); // The decrypted part should be a multipart/signed - Assert.IsInstanceOf (decrypted, "Expected the decrypted part to be a multipart/signed."); + Assert.That (decrypted, Is.InstanceOf (), "Expected the decrypted part to be a multipart/signed."); var signed = (MultipartSigned) decrypted; - Assert.IsInstanceOf (signed[0], "Expected the first part of the multipart/signed to be a multipart."); - Assert.IsInstanceOf (signed[1], "Expected second part of the multipart/signed to be a pkcs7-signature."); + Assert.That (signed[0], Is.InstanceOf (), "Expected the first part of the multipart/signed to be a multipart."); + Assert.That (signed[1], Is.InstanceOf (), "Expected second part of the multipart/signed to be a pkcs7-signature."); var extracted = (TextPart) signed[0]; Assert.That (extracted.Text, Is.EqualTo (body.Text), "The decrypted text part's text does not match the original."); @@ -2358,19 +2358,19 @@ public void TestSecureMimeDecryptVerifyThunderbird () } // The decrypted part should be a multipart/signed - Assert.IsInstanceOf (decrypted, "Expected the decrypted part to be a multipart/signed."); + Assert.That (decrypted, Is.InstanceOf (), "Expected the decrypted part to be a multipart/signed."); var signed = (MultipartSigned) decrypted; // The first part of the multipart/signed should be a multipart/mixed with a text/plain part and 2 image attachments, // very much like the thunderbird-signed.txt message. - Assert.IsInstanceOf (signed[0], "Expected the first part of the multipart/signed to be a multipart."); - Assert.IsInstanceOf (signed[1], "Expected second part of the multipart/signed to be a pkcs7-signature."); + Assert.That (signed[0], Is.InstanceOf (), "Expected the first part of the multipart/signed to be a multipart."); + Assert.That (signed[1], Is.InstanceOf (), "Expected second part of the multipart/signed to be a pkcs7-signature."); var multipart = (Multipart) signed[0]; - Assert.IsInstanceOf (multipart[0], "Expected the first part of the decrypted multipart to be a TextPart."); - Assert.IsInstanceOf (multipart[1], "Expected the second part of the decrypted multipart to be a MimePart."); - Assert.IsInstanceOf (multipart[2], "Expected the third part of the decrypted multipart to be a MimePart."); + Assert.That (multipart[0], Is.InstanceOf (), "Expected the first part of the decrypted multipart to be a TextPart."); + Assert.That (multipart[1], Is.InstanceOf (), "Expected the second part of the decrypted multipart to be a MimePart."); + Assert.That (multipart[2], Is.InstanceOf (), "Expected the third part of the decrypted multipart to be a MimePart."); var signatures = signed.Verify (ctx); @@ -2400,7 +2400,7 @@ public void TestSecureMimeDecryptVerifyThunderbird () } catch (DigitalSignatureVerifyException ex) { if (ctx is WindowsSecureMimeContext) { if (Environment.OSVersion.Platform != PlatformID.Win32NT) - Assert.IsInstanceOf (ex.InnerException); + Assert.That (ex.InnerException, Is.InstanceOf ()); else Assert.That (ex.InnerException.Message, Is.EqualTo (ExpiredCertificateMessage)); } else { @@ -2441,19 +2441,19 @@ public async Task TestSecureMimeDecryptVerifyThunderbirdAsync () } // The decrypted part should be a multipart/signed - Assert.IsInstanceOf (decrypted, "Expected the decrypted part to be a multipart/signed."); + Assert.That (decrypted, Is.InstanceOf (), "Expected the decrypted part to be a multipart/signed."); var signed = (MultipartSigned) decrypted; // The first part of the multipart/signed should be a multipart/mixed with a text/plain part and 2 image attachments, // very much like the thunderbird-signed.txt message. - Assert.IsInstanceOf (signed[0], "Expected the first part of the multipart/signed to be a multipart."); - Assert.IsInstanceOf (signed[1], "Expected second part of the multipart/signed to be a pkcs7-signature."); + Assert.That (signed[0], Is.InstanceOf (), "Expected the first part of the multipart/signed to be a multipart."); + Assert.That (signed[1], Is.InstanceOf (), "Expected second part of the multipart/signed to be a pkcs7-signature."); var multipart = (Multipart) signed[0]; - Assert.IsInstanceOf (multipart[0], "Expected the first part of the decrypted multipart to be a TextPart."); - Assert.IsInstanceOf (multipart[1], "Expected the second part of the decrypted multipart to be a MimePart."); - Assert.IsInstanceOf (multipart[2], "Expected the third part of the decrypted multipart to be a MimePart."); + Assert.That (multipart[0], Is.InstanceOf (), "Expected the first part of the decrypted multipart to be a TextPart."); + Assert.That (multipart[1], Is.InstanceOf (), "Expected the second part of the decrypted multipart to be a MimePart."); + Assert.That (multipart[2], Is.InstanceOf (), "Expected the third part of the decrypted multipart to be a MimePart."); var signatures = await signed.VerifyAsync (ctx); @@ -2483,7 +2483,7 @@ public async Task TestSecureMimeDecryptVerifyThunderbirdAsync () } catch (DigitalSignatureVerifyException ex) { if (ctx is WindowsSecureMimeContext) { if (Environment.OSVersion.Platform != PlatformID.Win32NT) - Assert.IsInstanceOf (ex.InnerException); + Assert.That (ex.InnerException, Is.InstanceOf ()); else Assert.That (ex.InnerException.Message, Is.EqualTo (ExpiredCertificateMessage)); } else { @@ -2506,7 +2506,7 @@ public virtual void TestSecureMimeImportExport () using (var ctx = CreateContext ()) { var certsonly = ctx.Export (mailboxes); - Assert.IsInstanceOf (certsonly, "The exported mime part is not of the expected type."); + Assert.That (certsonly, Is.InstanceOf (), "The exported mime part is not of the expected type."); var pkcs7mime = (ApplicationPkcs7Mime) certsonly; @@ -2534,7 +2534,7 @@ public virtual async Task TestSecureMimeImportExportAsync () using (var ctx = CreateContext ()) { var certsonly = await ctx.ExportAsync (mailboxes); - Assert.IsInstanceOf (certsonly, "The exported mime part is not of the expected type."); + Assert.That (certsonly, Is.InstanceOf (), "The exported mime part is not of the expected type."); var pkcs7mime = (ApplicationPkcs7Mime) certsonly; @@ -2559,7 +2559,7 @@ public void TestSecureMimeVerifyMixedLineEndings () message = parser.ParseMessage (); } - Assert.IsInstanceOf (message.Body, "THe message body is not multipart/signed as expected."); + Assert.That (message.Body, Is.InstanceOf (), "THe message body is not multipart/signed as expected."); var signed = (MultipartSigned) message.Body; @@ -2586,7 +2586,7 @@ public async Task TestSecureMimeVerifyMixedLineEndingsAsync () message = await parser.ParseMessageAsync (); } - Assert.IsInstanceOf (message.Body, "THe message body is not multipart/signed as expected."); + Assert.That (message.Body, Is.InstanceOf (), "THe message body is not multipart/signed as expected."); var signed = (MultipartSigned) message.Body; diff --git a/UnitTests/Cryptography/SqliteCertificateDatabaseTests.cs b/UnitTests/Cryptography/SqliteCertificateDatabaseTests.cs index f26b227cdc..68de7e0464 100644 --- a/UnitTests/Cryptography/SqliteCertificateDatabaseTests.cs +++ b/UnitTests/Cryptography/SqliteCertificateDatabaseTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/TemporarySecureMimeContextTests.cs b/UnitTests/Cryptography/TemporarySecureMimeContextTests.cs index 391c1253a5..a437fa1ff4 100644 --- a/UnitTests/Cryptography/TemporarySecureMimeContextTests.cs +++ b/UnitTests/Cryptography/TemporarySecureMimeContextTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/UnknownCryptographyContext.cs b/UnitTests/Cryptography/UnknownCryptographyContext.cs index 665f6cef35..a734983f02 100644 --- a/UnitTests/Cryptography/UnknownCryptographyContext.cs +++ b/UnitTests/Cryptography/UnknownCryptographyContext.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/X509CertificateChainTests.cs b/UnitTests/Cryptography/X509CertificateChainTests.cs index 027234c24d..7fec7d7500 100644 --- a/UnitTests/Cryptography/X509CertificateChainTests.cs +++ b/UnitTests/Cryptography/X509CertificateChainTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/X509CertificateGenerator.cs b/UnitTests/Cryptography/X509CertificateGenerator.cs index ec074c8f67..f73ab1d0dc 100644 --- a/UnitTests/Cryptography/X509CertificateGenerator.cs +++ b/UnitTests/Cryptography/X509CertificateGenerator.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/X509CertificateRecordTests.cs b/UnitTests/Cryptography/X509CertificateRecordTests.cs index 6ff0061c21..f56fadf690 100644 --- a/UnitTests/Cryptography/X509CertificateRecordTests.cs +++ b/UnitTests/Cryptography/X509CertificateRecordTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Cryptography/X509CertificateStoreTests.cs b/UnitTests/Cryptography/X509CertificateStoreTests.cs index 266ef71248..c9798bdff4 100644 --- a/UnitTests/Cryptography/X509CertificateStoreTests.cs +++ b/UnitTests/Cryptography/X509CertificateStoreTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/DomainListTests.cs b/UnitTests/DomainListTests.cs index 904b9adea5..bafb588736 100644 --- a/UnitTests/DomainListTests.cs +++ b/UnitTests/DomainListTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Encodings/EncoderTests.cs b/UnitTests/Encodings/EncoderTests.cs index 5afa5723f3..4ed15b2c69 100644 --- a/UnitTests/Encodings/EncoderTests.cs +++ b/UnitTests/Encodings/EncoderTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -564,7 +564,7 @@ static void AssertIsEncoderFilter (ContentEncoding encoding, ContentEncoding exp { var filter = EncoderFilter.Create (encoding); - Assert.IsInstanceOf (filter, "Expected EncoderFilter for ContentEncoding.{0}", encoding); + Assert.That (filter, Is.InstanceOf (), $"Expected EncoderFilter for ContentEncoding.{encoding}"); var encoder = (EncoderFilter) filter; @@ -575,7 +575,7 @@ static void AssertIsEncoderFilter (string encoding, ContentEncoding expected) { var filter = EncoderFilter.Create (encoding); - Assert.IsInstanceOf (filter, "Expected EncoderFilter for \"{0}\"", encoding); + Assert.That (filter, Is.InstanceOf (), $"Expected EncoderFilter for \"{encoding}\""); var encoder = (EncoderFilter) filter; @@ -591,20 +591,20 @@ public void TestCreateEncoders () AssertIsEncoderFilter (ContentEncoding.Base64, ContentEncoding.Base64); AssertIsEncoderFilter ("base64", ContentEncoding.Base64); - Assert.IsInstanceOf (EncoderFilter.Create (ContentEncoding.Binary)); - Assert.IsInstanceOf (EncoderFilter.Create ("binary")); + Assert.That (EncoderFilter.Create (ContentEncoding.Binary), Is.InstanceOf ()); + Assert.That (EncoderFilter.Create ("binary"), Is.InstanceOf ()); - Assert.IsInstanceOf (EncoderFilter.Create (ContentEncoding.Default)); - Assert.IsInstanceOf (EncoderFilter.Create ("x-invalid")); + Assert.That (EncoderFilter.Create (ContentEncoding.Default), Is.InstanceOf ()); + Assert.That (EncoderFilter.Create ("x-invalid"), Is.InstanceOf ()); - Assert.IsInstanceOf (EncoderFilter.Create (ContentEncoding.EightBit)); - Assert.IsInstanceOf (EncoderFilter.Create ("8bit")); + Assert.That (EncoderFilter.Create (ContentEncoding.EightBit), Is.InstanceOf ()); + Assert.That (EncoderFilter.Create ("8bit"), Is.InstanceOf ()); AssertIsEncoderFilter (ContentEncoding.QuotedPrintable, ContentEncoding.QuotedPrintable); AssertIsEncoderFilter ("quoted-printable", ContentEncoding.QuotedPrintable); - Assert.IsInstanceOf (EncoderFilter.Create (ContentEncoding.SevenBit)); - Assert.IsInstanceOf (EncoderFilter.Create ("7bit")); + Assert.That (EncoderFilter.Create (ContentEncoding.SevenBit), Is.InstanceOf ()); + Assert.That (EncoderFilter.Create ("7bit"), Is.InstanceOf ()); AssertIsEncoderFilter (ContentEncoding.UUEncode, ContentEncoding.UUEncode); AssertIsEncoderFilter ("x-uuencode", ContentEncoding.UUEncode); @@ -615,7 +615,7 @@ static void AssertIsDecoderFilter (ContentEncoding encoding, ContentEncoding exp { var filter = DecoderFilter.Create (encoding); - Assert.IsInstanceOf (filter, "Expected DecoderFilter for ContentEncoding.{0}", encoding); + Assert.That (filter, Is.InstanceOf (), $"Expected DecoderFilter for ContentEncoding.{encoding}"); var decoder = (DecoderFilter) filter; @@ -626,7 +626,7 @@ static void AssertIsDecoderFilter (string encoding, ContentEncoding expected) { var filter = DecoderFilter.Create (encoding); - Assert.IsInstanceOf (filter, "Expected DecoderFilter for \"{0}\"", encoding); + Assert.That (filter, Is.InstanceOf (), $"Expected DecoderFilter for \"{encoding}\""); var decoder = (DecoderFilter) filter; @@ -639,20 +639,20 @@ public void TestCreateDecoders () AssertIsDecoderFilter (ContentEncoding.Base64, ContentEncoding.Base64); AssertIsDecoderFilter ("base64", ContentEncoding.Base64); - Assert.IsInstanceOf (DecoderFilter.Create (ContentEncoding.Binary)); - Assert.IsInstanceOf (DecoderFilter.Create ("binary")); + Assert.That (DecoderFilter.Create (ContentEncoding.Binary), Is.InstanceOf ()); + Assert.That (DecoderFilter.Create ("binary"), Is.InstanceOf ()); - Assert.IsInstanceOf (DecoderFilter.Create (ContentEncoding.Default)); - Assert.IsInstanceOf (DecoderFilter.Create ("x-invalid")); + Assert.That (DecoderFilter.Create (ContentEncoding.Default), Is.InstanceOf ()); + Assert.That (DecoderFilter.Create ("x-invalid"), Is.InstanceOf ()); - Assert.IsInstanceOf (DecoderFilter.Create (ContentEncoding.EightBit)); - Assert.IsInstanceOf (DecoderFilter.Create ("8bit")); + Assert.That (DecoderFilter.Create (ContentEncoding.EightBit), Is.InstanceOf ()); + Assert.That (DecoderFilter.Create ("8bit"), Is.InstanceOf ()); AssertIsDecoderFilter (ContentEncoding.QuotedPrintable, ContentEncoding.QuotedPrintable); AssertIsDecoderFilter ("quoted-printable", ContentEncoding.QuotedPrintable); - Assert.IsInstanceOf (DecoderFilter.Create (ContentEncoding.SevenBit)); - Assert.IsInstanceOf (DecoderFilter.Create ("7bit")); + Assert.That (DecoderFilter.Create (ContentEncoding.SevenBit), Is.InstanceOf ()); + Assert.That (DecoderFilter.Create ("7bit"), Is.InstanceOf ()); AssertIsDecoderFilter (ContentEncoding.UUEncode, ContentEncoding.UUEncode); AssertIsDecoderFilter ("x-uuencode", ContentEncoding.UUEncode); diff --git a/UnitTests/Encodings/PunycodeTests.cs b/UnitTests/Encodings/PunycodeTests.cs index 5a68801819..092c7fc9a6 100644 --- a/UnitTests/Encodings/PunycodeTests.cs +++ b/UnitTests/Encodings/PunycodeTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Encodings/YEncodingTests.cs b/UnitTests/Encodings/YEncodingTests.cs index c17b2e3689..41964c1fb3 100644 --- a/UnitTests/Encodings/YEncodingTests.cs +++ b/UnitTests/Encodings/YEncodingTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/ExceptionTests.cs b/UnitTests/ExceptionTests.cs index 6312583ade..5b37887f29 100644 --- a/UnitTests/ExceptionTests.cs +++ b/UnitTests/ExceptionTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -65,7 +65,7 @@ public void TestCertificateNotFoundException () stream.Position = 0; var ex = (CertificateNotFoundException) formatter.Deserialize (stream); - Assert.IsTrue (expected.Mailbox.Equals (ex.Mailbox), "Unexpected Mailbox."); + Assert.That (ex.Mailbox, Is.EqualTo (expected.Mailbox), "Unexpected Mailbox."); } } @@ -151,7 +151,7 @@ public void TestPublicKeyNotFoundException () stream.Position = 0; var ex = (PublicKeyNotFoundException) formatter.Deserialize (stream); - Assert.IsTrue (expected.Mailbox.Equals (ex.Mailbox), "Unexpected Mailbox."); + Assert.That (ex.Mailbox, Is.EqualTo (expected.Mailbox), "Unexpected Mailbox."); } } diff --git a/UnitTests/ExperimentalMimeParserTests.cs b/UnitTests/ExperimentalMimeParserTests.cs index 06fe8530d7..8e29321a6a 100644 --- a/UnitTests/ExperimentalMimeParserTests.cs +++ b/UnitTests/ExperimentalMimeParserTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -456,7 +456,7 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MimePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MimePart"); var part = (MimePart) message.Body; Assert.That (part.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "Expected application/octet-stream"); Assert.That (part.ContentType.Charset, Is.EqualTo ("utf-8"), "Expected to keep Content-Type parameters"); @@ -472,7 +472,7 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MimePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MimePart"); var part = (MimePart) message.Body; Assert.That (part.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "Expected application/octet-stream"); Assert.That (part.ContentType.Charset, Is.EqualTo ("utf-8"), "Expected to keep Content-Type parameters"); @@ -504,7 +504,7 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MimePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MimePart"); var part = (MimePart) message.Body; Assert.That (part.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "Expected application/octet-stream"); Assert.That (part.ContentType.Charset, Is.EqualTo ("utf-8"), "Expected to keep Content-Type parameters"); @@ -520,7 +520,7 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MimePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MimePart"); var part = (MimePart) message.Body; Assert.That (part.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "Expected application/octet-stream"); Assert.That (part.ContentType.Charset, Is.EqualTo ("utf-8"), "Expected to keep Content-Type parameters"); @@ -553,7 +553,7 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a TextPart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a TextPart"); var header = message.Headers[message.Headers.Count - 1]; // FIXME: Should this really be "valid"? @@ -571,7 +571,7 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a TextPart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a TextPart"); var header = message.Headers[message.Headers.Count - 1]; // FIXME: Should this really be "valid"? @@ -606,7 +606,7 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a TextPart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a TextPart"); var header = message.Headers[message.Headers.Count - 1]; // FIXME: Should this really be "valid"? @@ -624,7 +624,7 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a TextPart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a TextPart"); var header = message.Headers[message.Headers.Count - 1]; // FIXME: Should this really be "valid"? @@ -664,10 +664,10 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1)); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); @@ -677,10 +677,10 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1)); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); @@ -712,10 +712,10 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); @@ -725,10 +725,10 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); @@ -756,10 +756,10 @@ public void TestTruncatedMultipartSubpartHeaders () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -771,10 +771,10 @@ public void TestTruncatedMultipartSubpartHeaders () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -804,10 +804,10 @@ public async Task TestTruncatedMultipartSubpartHeadersAsync () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -819,10 +819,10 @@ public async Task TestTruncatedMultipartSubpartHeadersAsync () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -853,10 +853,10 @@ public void TestTruncatedMultipartSubpartHeaderFieldName () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers.Count, Is.EqualTo (2), "Expected 2 headers"); @@ -871,10 +871,10 @@ public void TestTruncatedMultipartSubpartHeaderFieldName () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers.Count, Is.EqualTo (2), "Expected 2 headers"); @@ -908,10 +908,10 @@ public async Task TestTruncatedMultipartSubpartHeaderFieldNameAsync () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers.Count, Is.EqualTo (2), "Expected 2 headers"); @@ -926,10 +926,10 @@ public async Task TestTruncatedMultipartSubpartHeaderFieldNameAsync () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers.Count, Is.EqualTo (2), "Expected 2 headers"); @@ -964,10 +964,10 @@ public void TestMultipartSubpartHeadersEndWithBoundary () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -979,10 +979,10 @@ public void TestMultipartSubpartHeadersEndWithBoundary () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1014,10 +1014,10 @@ public async Task TestMultipartSubpartHeadersEndWithBoundaryAsync () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1029,10 +1029,10 @@ public async Task TestMultipartSubpartHeadersEndWithBoundaryAsync () var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1068,10 +1068,10 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1087,10 +1087,10 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1130,10 +1130,10 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1149,10 +1149,10 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1197,17 +1197,17 @@ This is the second part. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine + Environment.NewLine + "------=_NextPart_000_003F_01CE98CE.6E826F90 oops, not it.")); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1219,17 +1219,17 @@ This is the second part. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine + Environment.NewLine + "------=_NextPart_000_003F_01CE98CE.6E826F90 oops, not it.")); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1270,17 +1270,17 @@ This is the second part. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine + Environment.NewLine + "------=_NextPart_000_003F_01CE98CE.6E826F90 oops, not it.")); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1292,17 +1292,17 @@ This is the second part. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine + Environment.NewLine + "------=_NextPart_000_003F_01CE98CE.6E826F90 oops, not it.")); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1343,17 +1343,17 @@ This is technically the third part. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1365,17 +1365,17 @@ This is technically the third part. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1416,17 +1416,17 @@ This is technically the third part. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1438,17 +1438,17 @@ This is technically the third part. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1563,17 +1563,17 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1582,17 +1582,17 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1626,17 +1626,17 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1645,17 +1645,17 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1691,17 +1691,17 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1710,17 +1710,17 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1756,17 +1756,17 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1775,17 +1775,17 @@ This is the message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1833,20 +1833,20 @@ This is the embedded message body. var parser = new ExperimentalMimeParser (options, stream, MimeFormat.Mbox); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the embedded message to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the embedded message to be text/plain"); body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1861,20 +1861,20 @@ This is the embedded message body. var parser = new ExperimentalMimeParser (options, stream, MimeFormat.Mbox); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the embedded message to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the embedded message to be text/plain"); body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1925,20 +1925,20 @@ This is the embedded message body. var parser = new ExperimentalMimeParser (options, stream, MimeFormat.Mbox); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the embedded message to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the embedded message to be text/plain"); body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1953,20 +1953,20 @@ This is the embedded message body. var parser = new ExperimentalMimeParser (options, stream, MimeFormat.Mbox); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the embedded message to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the embedded message to be text/plain"); body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -2047,7 +2047,7 @@ public void TestMessageRfc822WithMungedFromMarkerBeforeMessage () var parser = new MimeParser (ParserOptions.Default, stream, MimeFormat.Mbox); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MessagePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MessagePart"); var rfc822 = (MessagePart) message.Body; Assert.That (rfc822.ContentType.Name, Is.EqualTo ("smime18-encrypted.msg"), "MessagePart.ContentType.Name"); @@ -2066,7 +2066,7 @@ public void TestMessageRfc822WithMungedFromMarkerBeforeMessage () var parser = new MimeParser (ParserOptions.Default, stream, MimeFormat.Mbox); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MessagePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MessagePart"); var rfc822 = (MessagePart) message.Body; Assert.That (rfc822.ContentType.Name, Is.EqualTo ("smime18-encrypted.msg"), "MessagePart.ContentType.Name"); @@ -2154,7 +2154,7 @@ public async Task TestMessageRfc822WithMungedFromMarkerBeforeMessageAsync () var parser = new MimeParser (ParserOptions.Default, stream, MimeFormat.Mbox); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MessagePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MessagePart"); var rfc822 = (MessagePart) message.Body; Assert.That (rfc822.ContentType.Name, Is.EqualTo ("smime18-encrypted.msg"), "MessagePart.ContentType.Name"); @@ -2173,7 +2173,7 @@ public async Task TestMessageRfc822WithMungedFromMarkerBeforeMessageAsync () var parser = new MimeParser (ParserOptions.Default, stream, MimeFormat.Mbox); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MessagePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MessagePart"); var rfc822 = (MessagePart) message.Body; Assert.That (rfc822.ContentType.Name, Is.EqualTo ("smime18-encrypted.msg"), "MessagePart.ContentType.Name"); @@ -2208,10 +2208,10 @@ This is the rfc822 message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var entity = parser.ParseEntity (); - Assert.IsInstanceOf (entity, "Expected message/rfc822"); + Assert.That (entity, Is.InstanceOf (), "Expected message/rfc822"); var rfc822 = (MessagePart) entity; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the message/rfc822 to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the message/rfc822 to be text/plain"); var body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -2223,10 +2223,10 @@ This is the rfc822 message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var entity = parser.ParseEntity (); - Assert.IsInstanceOf (entity, "Expected message/rfc822"); + Assert.That (entity, Is.InstanceOf (), "Expected message/rfc822"); var rfc822 = (MessagePart) entity; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the message/rfc822 to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the message/rfc822 to be text/plain"); var body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -2254,10 +2254,10 @@ This is the rfc822 message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var entity = await parser.ParseEntityAsync (); - Assert.IsInstanceOf (entity, "Expected message/rfc822"); + Assert.That (entity, Is.InstanceOf (), "Expected message/rfc822"); var rfc822 = (MessagePart) entity; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the message/rfc822 to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the message/rfc822 to be text/plain"); var body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -2269,10 +2269,10 @@ This is the rfc822 message body. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var entity = await parser.ParseEntityAsync (); - Assert.IsInstanceOf (entity, "Expected message/rfc822"); + Assert.That (entity, Is.InstanceOf (), "Expected message/rfc822"); var rfc822 = (MessagePart) entity; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the message/rfc822 to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the message/rfc822 to be text/plain"); var body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -2295,7 +2295,7 @@ This is some raw data. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var entity = parser.ParseEntity (); - Assert.IsInstanceOf (entity, "Expected MimePart"); + Assert.That (entity, Is.InstanceOf (), "Expected MimePart"); Assert.That (entity.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "MimeType"); Assert.That (entity.ContentType.Name, Is.EqualTo ("rawData.dat"), "Name"); var part = (MimePart) entity; @@ -2311,7 +2311,7 @@ This is some raw data. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var entity = parser.ParseEntity (); - Assert.IsInstanceOf (entity, "Expected MimePart"); + Assert.That (entity, Is.InstanceOf (), "Expected MimePart"); Assert.That (entity.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "MimeType"); Assert.That (entity.ContentType.Name, Is.EqualTo ("rawData.dat"), "Name"); var part = (MimePart) entity; @@ -2338,7 +2338,7 @@ This is some raw data. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var entity = await parser.ParseEntityAsync (); - Assert.IsInstanceOf (entity, "Expected MimePart"); + Assert.That (entity, Is.InstanceOf (), "Expected MimePart"); Assert.That (entity.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "MimeType"); Assert.That (entity.ContentType.Name, Is.EqualTo ("rawData.dat"), "Name"); var part = (MimePart) entity; @@ -2354,7 +2354,7 @@ This is some raw data. var parser = new ExperimentalMimeParser (stream, MimeFormat.Entity); var entity = await parser.ParseEntityAsync (); - Assert.IsInstanceOf (entity, "Expected MimePart"); + Assert.That (entity, Is.InstanceOf (), "Expected MimePart"); Assert.That (entity.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "MimeType"); Assert.That (entity.ContentType.Name, Is.EqualTo ("rawData.dat"), "Name"); var part = (MimePart) entity; @@ -2376,22 +2376,22 @@ static void AssertSimpleMbox (Stream stream) Multipart multipart; MimeEntity entity; - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); multipart = (Multipart) entity; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); multipart = (Multipart) entity; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); using (var memory = new MemoryStream ()) { entity.WriteTo (UnixFormatOptions, memory); @@ -2418,22 +2418,22 @@ static async Task AssertSimpleMboxAsync (Stream stream) Multipart multipart; MimeEntity entity; - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); multipart = (Multipart) entity; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); multipart = (Multipart) entity; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); using (var memory = new MemoryStream ()) { await entity.WriteToAsync (UnixFormatOptions, memory); @@ -3153,7 +3153,7 @@ public void TestIssue358 () var message = MimeMessage.Load (filtered); // make sure that the top-level MIME part is a multipart/alternative - Assert.IsInstanceOf (typeof (MultipartAlternative), message.Body); + Assert.That (message.Body, Is.InstanceOf ()); } } } @@ -3171,7 +3171,7 @@ public async Task TestIssue358Async () var message = await MimeMessage.LoadAsync (filtered); // make sure that the top-level MIME part is a multipart/alternative - Assert.IsInstanceOf (typeof (MultipartAlternative), message.Body); + Assert.That (message.Body, Is.InstanceOf ()); } } } diff --git a/UnitTests/FormatOptionsTests.cs b/UnitTests/FormatOptionsTests.cs index ee03d8d947..13a0c8fb6d 100644 --- a/UnitTests/FormatOptionsTests.cs +++ b/UnitTests/FormatOptionsTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/GroupAddressTests.cs b/UnitTests/GroupAddressTests.cs index f4282d4457..85b43c43bb 100644 --- a/UnitTests/GroupAddressTests.cs +++ b/UnitTests/GroupAddressTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/HeaderListCollectionTests.cs b/UnitTests/HeaderListCollectionTests.cs index c97a18d598..121a1da73c 100644 --- a/UnitTests/HeaderListCollectionTests.cs +++ b/UnitTests/HeaderListCollectionTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/HeaderListTests.cs b/UnitTests/HeaderListTests.cs index b0e02c8afc..a89ac3c159 100644 --- a/UnitTests/HeaderListTests.cs +++ b/UnitTests/HeaderListTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/HeaderTests.cs b/UnitTests/HeaderTests.cs index b98514d1e9..b6299c0308 100644 --- a/UnitTests/HeaderTests.cs +++ b/UnitTests/HeaderTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/HtmlPreviewVisitor.cs b/UnitTests/HtmlPreviewVisitor.cs index 0f7511237c..5259df2cf8 100644 --- a/UnitTests/HtmlPreviewVisitor.cs +++ b/UnitTests/HtmlPreviewVisitor.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/IO/BoundStreamTests.cs b/UnitTests/IO/BoundStreamTests.cs index a4e90b9ed7..456b1cf12c 100644 --- a/UnitTests/IO/BoundStreamTests.cs +++ b/UnitTests/IO/BoundStreamTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/IO/CanReadWriteSeekStream.cs b/UnitTests/IO/CanReadWriteSeekStream.cs index 81b7efca99..62a687e488 100644 --- a/UnitTests/IO/CanReadWriteSeekStream.cs +++ b/UnitTests/IO/CanReadWriteSeekStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/IO/ChainedStreamTests.cs b/UnitTests/IO/ChainedStreamTests.cs index d5815b1fd0..f2bb2860c0 100644 --- a/UnitTests/IO/ChainedStreamTests.cs +++ b/UnitTests/IO/ChainedStreamTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/IO/FilteredStreamTests.cs b/UnitTests/IO/FilteredStreamTests.cs index 47d5accda2..95abad6be8 100644 --- a/UnitTests/IO/FilteredStreamTests.cs +++ b/UnitTests/IO/FilteredStreamTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/IO/Filters/FilterTests.cs b/UnitTests/IO/Filters/FilterTests.cs index 6707d07e7e..cd5fabeddc 100644 --- a/UnitTests/IO/Filters/FilterTests.cs +++ b/UnitTests/IO/Filters/FilterTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/IO/MeasuringStreamTests.cs b/UnitTests/IO/MeasuringStreamTests.cs index b3b3a7672e..fde9dffe0f 100644 --- a/UnitTests/IO/MeasuringStreamTests.cs +++ b/UnitTests/IO/MeasuringStreamTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/IO/MemoryBlockStreamTests.cs b/UnitTests/IO/MemoryBlockStreamTests.cs index 3a7920abf8..6796240b41 100644 --- a/UnitTests/IO/MemoryBlockStreamTests.cs +++ b/UnitTests/IO/MemoryBlockStreamTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/IO/ReadOneByteStream.cs b/UnitTests/IO/ReadOneByteStream.cs index 0e812ead71..a202e78650 100644 --- a/UnitTests/IO/ReadOneByteStream.cs +++ b/UnitTests/IO/ReadOneByteStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/IO/TimeoutStream.cs b/UnitTests/IO/TimeoutStream.cs index 6c4bde1e04..9f747376e7 100644 --- a/UnitTests/IO/TimeoutStream.cs +++ b/UnitTests/IO/TimeoutStream.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/InternetAddressListTests.cs b/UnitTests/InternetAddressListTests.cs index af5384b192..469e824df0 100644 --- a/UnitTests/InternetAddressListTests.cs +++ b/UnitTests/InternetAddressListTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/InternetAddressTests.cs b/UnitTests/InternetAddressTests.cs index 71ddf73d22..a6c96026d1 100644 --- a/UnitTests/InternetAddressTests.cs +++ b/UnitTests/InternetAddressTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/MailboxAddressTests.cs b/UnitTests/MailboxAddressTests.cs index ca50a221e8..ae39f5f8b4 100644 --- a/UnitTests/MailboxAddressTests.cs +++ b/UnitTests/MailboxAddressTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/MessageDeliveryStatusTests.cs b/UnitTests/MessageDeliveryStatusTests.cs index bc95a014a5..72b5980fd2 100644 --- a/UnitTests/MessageDeliveryStatusTests.cs +++ b/UnitTests/MessageDeliveryStatusTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -46,11 +46,11 @@ public void TestStatusGroups () { var message = MimeMessage.Load (Path.Combine (TestHelper.ProjectDir, "TestData", "messages", "delivery-status.txt")); - Assert.IsInstanceOf (message.Body, "Expected top-level body part to be a multipart/report."); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level body part to be a multipart/report."); var report = (MultipartReport) message.Body; - Assert.IsInstanceOf (report[0], "Expected first part to be a message/delivery-status."); + Assert.That (report[0], Is.InstanceOf (), "Expected first part to be a message/delivery-status."); var delivery = (MessageDeliveryStatus) report[0]; var groups = delivery.StatusGroups; @@ -72,11 +72,11 @@ public void TestStatusGroupsNoBlankLine () { var message = MimeMessage.Load (Path.Combine (TestHelper.ProjectDir, "TestData", "messages", "delivery-status-no-blank-line.txt")); - Assert.IsInstanceOf (message.Body, "Expected top-level body part to be a multipart/report."); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level body part to be a multipart/report."); var report = (MultipartReport) message.Body; - Assert.IsInstanceOf (report[0], "Expected first part to be a message/delivery-status."); + Assert.That (report[0], Is.InstanceOf (), "Expected first part to be a message/delivery-status."); var delivery = (MessageDeliveryStatus) report[0]; var groups = delivery.StatusGroups; @@ -98,11 +98,11 @@ public void TestStatusGroupsWithContent () { var message = MimeMessage.Load (Path.Combine (TestHelper.ProjectDir, "TestData", "messages", "bounce.txt")); - Assert.IsInstanceOf (message.Body, "Expected top-level body part to be a multipart/report."); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level body part to be a multipart/report."); var report = (MultipartReport) message.Body; - Assert.IsInstanceOf (report[1], "Expected second part to be a message/delivery-status."); + Assert.That (report[1], Is.InstanceOf (), "Expected second part to be a message/delivery-status."); var delivery = (MessageDeliveryStatus) report[1]; Assert.That (delivery.ContentDescription, Is.EqualTo ("Delivery report"), "ContentDescription"); @@ -134,12 +134,12 @@ public void TestStatusGroupsMultipleBlankLines () { var message = MimeMessage.Load (Path.Combine (TestHelper.ProjectDir, "TestData", "messages", "delivery-status-multiple-blank-lines.txt")); - Assert.IsInstanceOf (message.Body, "Expected top-level body part to be a multipart/report."); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level body part to be a multipart/report."); var report = (MultipartReport) message.Body; - Assert.IsInstanceOf (report[0], "Expected second part to be a text/plain."); - Assert.IsInstanceOf (report[1], "Expected second part to be a message/delivery-status."); + Assert.That (report[0], Is.InstanceOf (), "Expected second part to be a text/plain."); + Assert.That (report[1], Is.InstanceOf (), "Expected second part to be a message/delivery-status."); var delivery = (MessageDeliveryStatus) report[1]; var groups = delivery.StatusGroups; diff --git a/UnitTests/MessageDispositionNotificiationTests.cs b/UnitTests/MessageDispositionNotificiationTests.cs index c6f9e124e0..257dfbe129 100644 --- a/UnitTests/MessageDispositionNotificiationTests.cs +++ b/UnitTests/MessageDispositionNotificiationTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -45,11 +45,11 @@ public void TestMimeParser () { var message = MimeMessage.Load (Path.Combine (TestHelper.ProjectDir, "TestData", "messages", "disposition-notification.txt")); - Assert.IsInstanceOf (message.Body, "Expected top-level body part to be a multipart/report."); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level body part to be a multipart/report."); var multipart = (MultipartReport) message.Body; - Assert.IsInstanceOf (multipart[1], "Expected second part to be a message/disposition-notification."); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second part to be a message/disposition-notification."); Assert.That (multipart.ReportType, Is.EqualTo ("disposition-notification")); var mdn = (MessageDispositionNotification) multipart[1]; diff --git a/UnitTests/MessageFeedbackReportTests.cs b/UnitTests/MessageFeedbackReportTests.cs index f2d9290418..911aae6b0b 100644 --- a/UnitTests/MessageFeedbackReportTests.cs +++ b/UnitTests/MessageFeedbackReportTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -45,11 +45,11 @@ public void TestMimeParser () { var message = MimeMessage.Load (Path.Combine (TestHelper.ProjectDir, "TestData", "messages", "feedback-report.txt")); - Assert.IsInstanceOf (message.Body, "Expected top-level body part to be a multipart/report."); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level body part to be a multipart/report."); var multipart = (MultipartReport) message.Body; - Assert.IsInstanceOf (multipart[1], "Expected second part to be a message/feedback-report."); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second part to be a message/feedback-report."); Assert.That (multipart.ReportType, Is.EqualTo ("feedback-report")); var mfr = (MessageFeedbackReport) multipart[1]; diff --git a/UnitTests/MessageIdListTests.cs b/UnitTests/MessageIdListTests.cs index 963e15bd4a..be1701231d 100644 --- a/UnitTests/MessageIdListTests.cs +++ b/UnitTests/MessageIdListTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/MessagePartTests.cs b/UnitTests/MessagePartTests.cs index 6d91178d75..ac5221259e 100644 --- a/UnitTests/MessagePartTests.cs +++ b/UnitTests/MessagePartTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/MessagePartialTests.cs b/UnitTests/MessagePartialTests.cs index ade7611a36..7a7d569aa5 100644 --- a/UnitTests/MessagePartialTests.cs +++ b/UnitTests/MessagePartialTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/MimeContentTests.cs b/UnitTests/MimeContentTests.cs index 7de3ce12a3..e8e77a8682 100644 --- a/UnitTests/MimeContentTests.cs +++ b/UnitTests/MimeContentTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/MimeIteratorTests.cs b/UnitTests/MimeIteratorTests.cs index cd600367d8..4d45ff27db 100644 --- a/UnitTests/MimeIteratorTests.cs +++ b/UnitTests/MimeIteratorTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -141,7 +141,7 @@ public void TestPathSpecifiers () Assert.That (iter.Depth, Is.EqualTo (expectedDepths[i]), $"Depth #{i}"); Assert.That (parent, Is.EqualTo (expectedParents[i]), $"Parent #{i}"); - Assert.IsInstanceOf (expectedTypes[i], current, "Type #{0}", i); + Assert.That (current, Is.InstanceOf (expectedTypes[i]), $"Type #{i}"); Assert.That (iter.PathSpecifier, Is.EqualTo (expectedPathSpecifiers[i]), $"PathSpecifier #{i}"); i++; } while (iter.MoveNext ()); @@ -158,7 +158,7 @@ public void TestPathSpecifiers () Assert.That (iter.Depth, Is.EqualTo (expectedDepths[i]), $"Reset Depth #{i}"); Assert.That (parent, Is.EqualTo (expectedParents[i]), $"Reset Parent #{i}"); - Assert.IsInstanceOf (expectedTypes[i], current, "Reset Type #{0}", i); + Assert.That (current, Is.InstanceOf (expectedTypes[i]), $"Reset Type #{i}"); Assert.That (iter.PathSpecifier, Is.EqualTo (expectedPathSpecifiers[i]), $"Reset PathSpecifier #{i}"); i++; } while (iter.MoveNext ()); @@ -181,7 +181,7 @@ public void TestMoveTo () Assert.That (iter.MoveTo (expectedPathSpecifiers[i]), Is.True, $"MoveTo {expectedPathSpecifiers[i]}"); Assert.That (iter.PathSpecifier, Is.EqualTo (expectedPathSpecifiers[i]), $"PathSpecifier {expectedPathSpecifiers[i]}"); Assert.That (iter.Parent, Is.EqualTo (expectedParents[i]), $"Parent {expectedPathSpecifiers[i]}"); - Assert.IsInstanceOf (expectedTypes[i], iter.Current, "Type {0}", expectedPathSpecifiers[i]); + Assert.That (iter.Current, Is.InstanceOf (expectedTypes[i]), $"Type {expectedPathSpecifiers[i]}"); Assert.That (iter.Depth, Is.EqualTo (expectedDepths[i]), $"Depth {expectedPathSpecifiers[i]}"); } } diff --git a/UnitTests/MimeMessageTests.cs b/UnitTests/MimeMessageTests.cs index c9dd5a300d..759f5b806c 100644 --- a/UnitTests/MimeMessageTests.cs +++ b/UnitTests/MimeMessageTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -882,14 +882,14 @@ public void TestMailMessageToMimeMessage () Assert.That (message.Subject, Is.EqualTo (mail.Subject), "The message subjects do not match."); Assert.That (message.Priority, Is.EqualTo (MessagePriority.Urgent), "The message priority does not match."); Assert.That (message.Headers["X-MimeKit-Test"], Is.EqualTo (mail.Headers["X-MimeKit-Test"]), "The X-MimeKit-Test headers do not match"); - Assert.IsInstanceOf (message.Body, "The top-level MIME part should be a multipart/mixed."); + Assert.That (message.Body, Is.InstanceOf (), "The top-level MIME part should be a multipart/mixed."); var mixed = (Multipart) message.Body; Assert.That (mixed.ContentType.MimeType, Is.EqualTo ("multipart/mixed"), "The top-level MIME part should be a multipart/mixed."); Assert.That (mixed.Count, Is.EqualTo (2), "Expected 2 MIME parts within the multipart/mixed"); - Assert.IsInstanceOf (mixed[0], "Expected the first part the multipart/mixed to be a multipart/alternative"); - Assert.IsInstanceOf (mixed[1], "Expected the first part the multipart/mixed to be a MimePart"); + Assert.That (mixed[0], Is.InstanceOf (), "Expected the first part the multipart/mixed to be a multipart/alternative"); + Assert.That (mixed[1], Is.InstanceOf (), "Expected the first part the multipart/mixed to be a MimePart"); var attachment = (MimePart) mixed[1]; Assert.That (attachment.FileName, Is.EqualTo ("empty.jpeg"), "Expected the attachment to have a filename"); diff --git a/UnitTests/MimeParserTests.cs b/UnitTests/MimeParserTests.cs index 6ef6980809..9851587a21 100644 --- a/UnitTests/MimeParserTests.cs +++ b/UnitTests/MimeParserTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -440,7 +440,7 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MimePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MimePart"); var part = (MimePart) message.Body; Assert.That (part.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "Expected application/octet-stream"); Assert.That (part.ContentType.Charset, Is.EqualTo ("utf-8"), "Expected to keep Content-Type parameters"); @@ -456,7 +456,7 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MimePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MimePart"); var part = (MimePart) message.Body; Assert.That (part.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "Expected application/octet-stream"); Assert.That (part.ContentType.Charset, Is.EqualTo ("utf-8"), "Expected to keep Content-Type parameters"); @@ -488,7 +488,7 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MimePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MimePart"); var part = (MimePart) message.Body; Assert.That (part.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "Expected application/octet-stream"); Assert.That (part.ContentType.Charset, Is.EqualTo ("utf-8"), "Expected to keep Content-Type parameters"); @@ -504,7 +504,7 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MimePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MimePart"); var part = (MimePart) message.Body; Assert.That (part.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "Expected application/octet-stream"); Assert.That (part.ContentType.Charset, Is.EqualTo ("utf-8"), "Expected to keep Content-Type parameters"); @@ -537,7 +537,7 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a TextPart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a TextPart"); var header = message.Headers[message.Headers.Count - 1]; // FIXME: Should this really be "valid"? @@ -555,7 +555,7 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a TextPart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a TextPart"); var header = message.Headers[message.Headers.Count - 1]; // FIXME: Should this really be "valid"? @@ -590,7 +590,7 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a TextPart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a TextPart"); var header = message.Headers[message.Headers.Count - 1]; // FIXME: Should this really be "valid"? @@ -608,7 +608,7 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a TextPart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a TextPart"); var header = message.Headers[message.Headers.Count - 1]; // FIXME: Should this really be "valid"? @@ -648,10 +648,10 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1)); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); @@ -661,10 +661,10 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1)); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); @@ -696,10 +696,10 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); @@ -709,10 +709,10 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); @@ -740,10 +740,10 @@ public void TestTruncatedMultipartSubpartHeaders () var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -755,10 +755,10 @@ public void TestTruncatedMultipartSubpartHeaders () var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -788,10 +788,10 @@ public async Task TestTruncatedMultipartSubpartHeadersAsync () var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -803,10 +803,10 @@ public async Task TestTruncatedMultipartSubpartHeadersAsync () var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -837,10 +837,10 @@ public void TestTruncatedMultipartSubpartHeaderFieldName () var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers.Count, Is.EqualTo (2), "Expected 2 headers"); @@ -855,10 +855,10 @@ public void TestTruncatedMultipartSubpartHeaderFieldName () var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers.Count, Is.EqualTo (2), "Expected 2 headers"); @@ -892,10 +892,10 @@ public async Task TestTruncatedMultipartSubpartHeaderFieldNameAsync () var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers.Count, Is.EqualTo (2), "Expected 2 headers"); @@ -910,10 +910,10 @@ public async Task TestTruncatedMultipartSubpartHeaderFieldNameAsync () var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers.Count, Is.EqualTo (2), "Expected 2 headers"); @@ -948,10 +948,10 @@ public void TestMultipartSubpartHeadersEndWithBoundary () var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -963,10 +963,10 @@ public void TestMultipartSubpartHeadersEndWithBoundary () var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -998,10 +998,10 @@ public async Task TestMultipartSubpartHeadersEndWithBoundaryAsync () var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1013,10 +1013,10 @@ public async Task TestMultipartSubpartHeadersEndWithBoundaryAsync () var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1052,10 +1052,10 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1071,10 +1071,10 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1114,10 +1114,10 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1133,10 +1133,10 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1), "Expected 1 child"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1181,17 +1181,17 @@ This is the second part. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine + Environment.NewLine + "------=_NextPart_000_003F_01CE98CE.6E826F90 oops, not it.")); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1203,17 +1203,17 @@ This is the second part. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine + Environment.NewLine + "------=_NextPart_000_003F_01CE98CE.6E826F90 oops, not it.")); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1254,17 +1254,17 @@ This is the second part. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine + Environment.NewLine + "------=_NextPart_000_003F_01CE98CE.6E826F90 oops, not it.")); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1276,17 +1276,17 @@ This is the second part. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine + Environment.NewLine + "------=_NextPart_000_003F_01CE98CE.6E826F90 oops, not it.")); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1327,17 +1327,17 @@ This is technically the third part. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1349,17 +1349,17 @@ This is technically the third part. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1400,17 +1400,17 @@ This is technically the third part. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1422,17 +1422,17 @@ This is technically the third part. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the first part." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be text/plain"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be text/plain"); body = (TextPart) multipart[1]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1547,17 +1547,17 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1566,17 +1566,17 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1610,17 +1610,17 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1629,17 +1629,17 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1675,17 +1675,17 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1694,17 +1694,17 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1740,17 +1740,17 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1759,17 +1759,17 @@ This is the message body. var parser = new MimeParser (stream, MimeFormat.Entity); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; Assert.That (rfc822.Message, Is.Null, "Message"); } @@ -1817,20 +1817,20 @@ This is the embedded message body. var parser = new MimeParser (options, stream, MimeFormat.Mbox); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the embedded message to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the embedded message to be text/plain"); body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1845,20 +1845,20 @@ This is the embedded message body. var parser = new MimeParser (options, stream, MimeFormat.Mbox); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the embedded message to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the embedded message to be text/plain"); body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1909,20 +1909,20 @@ This is the embedded message body. var parser = new MimeParser (options, stream, MimeFormat.Mbox); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the embedded message to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the embedded message to be text/plain"); body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -1937,20 +1937,20 @@ This is the embedded message body. var parser = new MimeParser (options, stream, MimeFormat.Mbox); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a multipart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a multipart"); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (2), "Expected 2 children"); - Assert.IsInstanceOf (multipart[0], "Expected first child of the multipart to be text/plain"); + Assert.That (multipart[0], Is.InstanceOf (), "Expected first child of the multipart to be text/plain"); var body = (TextPart) multipart[0]; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); Assert.That (body.ContentType.Charset, Is.EqualTo ("utf-8")); Assert.That (body.Text, Is.EqualTo ("This is the message body." + Environment.NewLine)); - Assert.IsInstanceOf (multipart[1], "Expected second child of the multipart to be message/rfc822"); + Assert.That (multipart[1], Is.InstanceOf (), "Expected second child of the multipart to be message/rfc822"); var rfc822 = (MessagePart) multipart[1]; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the embedded message to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the embedded message to be text/plain"); body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -2031,7 +2031,7 @@ public void TestMessageRfc822WithMungedFromMarkerBeforeMessage () var parser = new MimeParser (ParserOptions.Default, stream, MimeFormat.Mbox); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MessagePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MessagePart"); var rfc822 = (MessagePart) message.Body; Assert.That (rfc822.ContentType.Name, Is.EqualTo ("smime18-encrypted.msg"), "MessagePart.ContentType.Name"); @@ -2050,7 +2050,7 @@ public void TestMessageRfc822WithMungedFromMarkerBeforeMessage () var parser = new MimeParser (ParserOptions.Default, stream, MimeFormat.Mbox); var message = parser.ParseMessage (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MessagePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MessagePart"); var rfc822 = (MessagePart) message.Body; Assert.That (rfc822.ContentType.Name, Is.EqualTo ("smime18-encrypted.msg"), "MessagePart.ContentType.Name"); @@ -2138,7 +2138,7 @@ public async Task TestMessageRfc822WithMungedFromMarkerBeforeMessageAsync () var parser = new MimeParser (ParserOptions.Default, stream, MimeFormat.Mbox); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MessagePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MessagePart"); var rfc822 = (MessagePart) message.Body; Assert.That (rfc822.ContentType.Name, Is.EqualTo ("smime18-encrypted.msg"), "MessagePart.ContentType.Name"); @@ -2157,7 +2157,7 @@ public async Task TestMessageRfc822WithMungedFromMarkerBeforeMessageAsync () var parser = new MimeParser (ParserOptions.Default, stream, MimeFormat.Mbox); var message = await parser.ParseMessageAsync (); - Assert.IsInstanceOf (message.Body, "Expected top-level to be a MessagePart"); + Assert.That (message.Body, Is.InstanceOf (), "Expected top-level to be a MessagePart"); var rfc822 = (MessagePart) message.Body; Assert.That (rfc822.ContentType.Name, Is.EqualTo ("smime18-encrypted.msg"), "MessagePart.ContentType.Name"); @@ -2192,10 +2192,10 @@ This is the rfc822 message body. var parser = new MimeParser (stream, MimeFormat.Entity); var entity = parser.ParseEntity (); - Assert.IsInstanceOf (entity, "Expected message/rfc822"); + Assert.That (entity, Is.InstanceOf (), "Expected message/rfc822"); var rfc822 = (MessagePart) entity; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the message/rfc822 to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the message/rfc822 to be text/plain"); var body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -2207,10 +2207,10 @@ This is the rfc822 message body. var parser = new MimeParser (stream, MimeFormat.Entity); var entity = parser.ParseEntity (); - Assert.IsInstanceOf (entity, "Expected message/rfc822"); + Assert.That (entity, Is.InstanceOf (), "Expected message/rfc822"); var rfc822 = (MessagePart) entity; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the message/rfc822 to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the message/rfc822 to be text/plain"); var body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -2238,10 +2238,10 @@ This is the rfc822 message body. var parser = new MimeParser (stream, MimeFormat.Entity); var entity = await parser.ParseEntityAsync (); - Assert.IsInstanceOf (entity, "Expected message/rfc822"); + Assert.That (entity, Is.InstanceOf (), "Expected message/rfc822"); var rfc822 = (MessagePart) entity; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the message/rfc822 to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the message/rfc822 to be text/plain"); var body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -2253,10 +2253,10 @@ This is the rfc822 message body. var parser = new MimeParser (stream, MimeFormat.Entity); var entity = await parser.ParseEntityAsync (); - Assert.IsInstanceOf (entity, "Expected message/rfc822"); + Assert.That (entity, Is.InstanceOf (), "Expected message/rfc822"); var rfc822 = (MessagePart) entity; - Assert.IsInstanceOf (rfc822.Message.Body, "Expected child of the message/rfc822 to be text/plain"); + Assert.That (rfc822.Message.Body, Is.InstanceOf (), "Expected child of the message/rfc822 to be text/plain"); var body = (TextPart) rfc822.Message.Body; Assert.That (body.Headers[HeaderId.ContentType], Is.EqualTo ("text/plain; charset=utf-8")); @@ -2279,7 +2279,7 @@ This is some raw data. var parser = new MimeParser (stream, MimeFormat.Entity); var entity = parser.ParseEntity (); - Assert.IsInstanceOf (entity, "Expected MimePart"); + Assert.That (entity, Is.InstanceOf (), "Expected MimePart"); Assert.That (entity.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "MimeType"); Assert.That (entity.ContentType.Name, Is.EqualTo ("rawData.dat"), "Name"); var part = (MimePart) entity; @@ -2295,7 +2295,7 @@ This is some raw data. var parser = new MimeParser (stream, MimeFormat.Entity); var entity = parser.ParseEntity (); - Assert.IsInstanceOf (entity, "Expected MimePart"); + Assert.That (entity, Is.InstanceOf (), "Expected MimePart"); Assert.That (entity.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "MimeType"); Assert.That (entity.ContentType.Name, Is.EqualTo ("rawData.dat"), "Name"); var part = (MimePart) entity; @@ -2322,7 +2322,7 @@ This is some raw data. var parser = new MimeParser (stream, MimeFormat.Entity); var entity = await parser.ParseEntityAsync (); - Assert.IsInstanceOf (entity, "Expected MimePart"); + Assert.That (entity, Is.InstanceOf (), "Expected MimePart"); Assert.That (entity.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "MimeType"); Assert.That (entity.ContentType.Name, Is.EqualTo ("rawData.dat"), "Name"); var part = (MimePart) entity; @@ -2338,7 +2338,7 @@ This is some raw data. var parser = new MimeParser (stream, MimeFormat.Entity); var entity = await parser.ParseEntityAsync (); - Assert.IsInstanceOf (entity, "Expected MimePart"); + Assert.That (entity, Is.InstanceOf (), "Expected MimePart"); Assert.That (entity.ContentType.MimeType, Is.EqualTo ("application/octet-stream"), "MimeType"); Assert.That (entity.ContentType.Name, Is.EqualTo ("rawData.dat"), "Name"); var part = (MimePart) entity; @@ -2360,22 +2360,22 @@ static void AssertSimpleMbox (Stream stream) Multipart multipart; MimeEntity entity; - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); multipart = (Multipart) entity; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); multipart = (Multipart) entity; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); using (var memory = new MemoryStream ()) { entity.WriteTo (UnixFormatOptions, memory); @@ -2402,22 +2402,22 @@ static async Task AssertSimpleMboxAsync (Stream stream) Multipart multipart; MimeEntity entity; - Assert.IsInstanceOf (message.Body); + Assert.That (message.Body, Is.InstanceOf ()); multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); multipart = (Multipart) entity; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); multipart = (Multipart) entity; Assert.That (multipart.Count, Is.EqualTo (1)); entity = multipart[0]; - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); using (var memory = new MemoryStream ()) { await entity.WriteToAsync (UnixFormatOptions, memory); @@ -3115,7 +3115,7 @@ public void TestIssue358 () var message = MimeMessage.Load (filtered); // make sure that the top-level MIME part is a multipart/alternative - Assert.IsInstanceOf (typeof (MultipartAlternative), message.Body); + Assert.That (message.Body, Is.InstanceOf ()); } } } @@ -3133,7 +3133,7 @@ public async Task TestIssue358Async () var message = await MimeMessage.LoadAsync (filtered); // make sure that the top-level MIME part is a multipart/alternative - Assert.IsInstanceOf (typeof (MultipartAlternative), message.Body); + Assert.That (message.Body, Is.InstanceOf ()); } } } diff --git a/UnitTests/MimePartTests.cs b/UnitTests/MimePartTests.cs index 61094bf948..20427ea1af 100644 --- a/UnitTests/MimePartTests.cs +++ b/UnitTests/MimePartTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -596,7 +596,7 @@ public void TestLoadHttpWebResponse () using (var content = new MemoryStream (Encoding.ASCII.GetBytes (text), false)) { var entity = MimeEntity.Load (contentType, content); - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); var part = (TextPart) entity; @@ -613,7 +613,7 @@ public async Task TestLoadHttpWebResponseAsync () using (var content = new MemoryStream (Encoding.ASCII.GetBytes (text), false)) { var entity = await MimeEntity.LoadAsync (contentType, content); - Assert.IsInstanceOf (entity); + Assert.That (entity, Is.InstanceOf ()); var part = (TextPart) entity; diff --git a/UnitTests/MimeReaderTests.cs b/UnitTests/MimeReaderTests.cs index 591c0a3db8..44f0d89b37 100644 --- a/UnitTests/MimeReaderTests.cs +++ b/UnitTests/MimeReaderTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/MimeTypeTests.cs b/UnitTests/MimeTypeTests.cs index 430b01acf7..de0ccc65f1 100644 --- a/UnitTests/MimeTypeTests.cs +++ b/UnitTests/MimeTypeTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -88,7 +88,7 @@ public void TestTryGetExtensionUnknownMimeType () public void TestMimeTypeRegister () { Assert.That (MimeTypes.GetMimeType ("filename.bogus"), Is.EqualTo ("application/octet-stream")); - Assert.False (MimeTypes.TryGetExtension ("application/vnd.bogus", out _)); + Assert.That (MimeTypes.TryGetExtension ("application/vnd.bogus", out _), Is.False); MimeTypes.Register ("application/vnd.bogus", ".bogus"); diff --git a/UnitTests/MimeVisitorTests.cs b/UnitTests/MimeVisitorTests.cs index aaa6c5758a..7f2a5063b7 100644 --- a/UnitTests/MimeVisitorTests.cs +++ b/UnitTests/MimeVisitorTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/MultipartAlternativeTests.cs b/UnitTests/MultipartAlternativeTests.cs index 5bb01805c5..307fca4d39 100644 --- a/UnitTests/MultipartAlternativeTests.cs +++ b/UnitTests/MultipartAlternativeTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/MultipartRelatedTests.cs b/UnitTests/MultipartRelatedTests.cs index 8babbbcb13..81838e7b46 100644 --- a/UnitTests/MultipartRelatedTests.cs +++ b/UnitTests/MultipartRelatedTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -89,7 +89,7 @@ public void TestDocumentRoot () Assert.That (related.Root, Is.EqualTo (root), "Root"); Assert.That (related[2], Is.EqualTo (root), "Root should be the 3rd item."); Assert.That (root.ContentId, Is.Not.Null, "Root's Content-Id should not be null."); - Assert.IsNotEmpty (root.ContentId, "Root's Content-Id should not be empty."); + Assert.That (root.ContentId, Is.Not.Empty, "Root's Content-Id should not be empty."); start = "<" + root.ContentId + ">"; @@ -141,7 +141,7 @@ public void TestReferenceByContentId () var body = builder.ToMessageBody (); - Assert.IsInstanceOf (body, "Expected a multipart/related."); + Assert.That (body, Is.InstanceOf (), "Expected a multipart/related."); var related = (MultipartRelated) body; @@ -181,7 +181,7 @@ public void TestReferenceByContentLocation () var body = builder.ToMessageBody (); - Assert.IsInstanceOf (body, "Expected a multipart/related."); + Assert.That (body, Is.InstanceOf (), "Expected a multipart/related."); var related = (MultipartRelated) body; diff --git a/UnitTests/MultipartReportTests.cs b/UnitTests/MultipartReportTests.cs index e158d9afc0..3e4638e6a9 100644 --- a/UnitTests/MultipartReportTests.cs +++ b/UnitTests/MultipartReportTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/MultipartTests.cs b/UnitTests/MultipartTests.cs index 7f8aaba255..7adb1ebd54 100644 --- a/UnitTests/MultipartTests.cs +++ b/UnitTests/MultipartTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -94,7 +94,7 @@ public void TestBasicFunctionality () var multipart = new Multipart (); Assert.That (multipart.Boundary, Is.Not.Null, "Boundary != null"); - Assert.IsNotEmpty (multipart.Boundary, "Boundary"); + Assert.That (multipart.Boundary, Is.Not.Empty, "Boundary"); Assert.That (multipart.IsReadOnly, Is.False, "IsReadOnly"); multipart.Boundary = "__Next_Part_123"; diff --git a/UnitTests/ParameterListTests.cs b/UnitTests/ParameterListTests.cs index f33fa26bf0..ca73a23fb9 100644 --- a/UnitTests/ParameterListTests.cs +++ b/UnitTests/ParameterListTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/ParameterTests.cs b/UnitTests/ParameterTests.cs index c281c7e2b0..a88babd60f 100644 --- a/UnitTests/ParameterTests.cs +++ b/UnitTests/ParameterTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/ParserOptionsTests.cs b/UnitTests/ParserOptionsTests.cs index 3015783e48..e601bb8687 100644 --- a/UnitTests/ParserOptionsTests.cs +++ b/UnitTests/ParserOptionsTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -71,7 +71,7 @@ public void TestParsingOfApplicationRtf () using (var stream = new MemoryStream (Encoding.UTF8.GetBytes (rawMimeData))) { var part = MimeEntity.Load (stream); - Assert.IsInstanceOf (part, "Expected the application/rtf part to be parsed as TextPart."); + Assert.That (part, Is.InstanceOf (), "Expected the application/rtf part to be parsed as TextPart."); var text = (TextPart) part; Assert.That (text.IsRichText, Is.True, "IsRichText"); } @@ -92,7 +92,7 @@ public void TestParsingOfMessageGlobalHeaders () using (var stream = new MemoryStream (Encoding.UTF8.GetBytes (rawMimeData))) { var part = MimeEntity.Load (stream); - Assert.IsInstanceOf (part, "Expected the message/global-headers part to be parsed as TextRfc822Headers."); + Assert.That (part, Is.InstanceOf (), "Expected the message/global-headers part to be parsed as TextRfc822Headers."); } } @@ -114,7 +114,7 @@ public void TestParsingOfCustomType () var html = MimeEntity.Load (options, stream); - Assert.IsInstanceOf (html, "Expected the text/html part to use our custom type."); + Assert.That (html, Is.InstanceOf (), "Expected the text/html part to use our custom type."); } } @@ -136,7 +136,7 @@ public async Task TestParsingOfCustomTypeAsync () var html = await MimeEntity.LoadAsync (options, stream); - Assert.IsInstanceOf (html, "Expected the text/html part to use our custom type."); + Assert.That (html, Is.InstanceOf (), "Expected the text/html part to use our custom type."); } } } diff --git a/UnitTests/TestHelper.cs b/UnitTests/TestHelper.cs index 4fb3054100..2090ef9057 100644 --- a/UnitTests/TestHelper.cs +++ b/UnitTests/TestHelper.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/FlowedToHtmlTests.cs b/UnitTests/Text/FlowedToHtmlTests.cs index d340734b3e..2b14dad8c3 100644 --- a/UnitTests/Text/FlowedToHtmlTests.cs +++ b/UnitTests/Text/FlowedToHtmlTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/FlowedToTextTests.cs b/UnitTests/Text/FlowedToTextTests.cs index a336a95eef..4835e9b1bd 100644 --- a/UnitTests/Text/FlowedToTextTests.cs +++ b/UnitTests/Text/FlowedToTextTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/HtmlAttributeCollectionTests.cs b/UnitTests/Text/HtmlAttributeCollectionTests.cs index c1b507ca4a..040d10677b 100644 --- a/UnitTests/Text/HtmlAttributeCollectionTests.cs +++ b/UnitTests/Text/HtmlAttributeCollectionTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/HtmlAttributeTests.cs b/UnitTests/Text/HtmlAttributeTests.cs index fe5c12706b..2e5b5af784 100644 --- a/UnitTests/Text/HtmlAttributeTests.cs +++ b/UnitTests/Text/HtmlAttributeTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/HtmlEntityDecoderTests.cs b/UnitTests/Text/HtmlEntityDecoderTests.cs index 5dda1d1b6c..9026168857 100644 --- a/UnitTests/Text/HtmlEntityDecoderTests.cs +++ b/UnitTests/Text/HtmlEntityDecoderTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/HtmlTagIdTests.cs b/UnitTests/Text/HtmlTagIdTests.cs index c9fa4b58b7..69a0e77543 100644 --- a/UnitTests/Text/HtmlTagIdTests.cs +++ b/UnitTests/Text/HtmlTagIdTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/HtmlTextPreviewerTests.cs b/UnitTests/Text/HtmlTextPreviewerTests.cs index b81d8a8592..a8b00fb760 100644 --- a/UnitTests/Text/HtmlTextPreviewerTests.cs +++ b/UnitTests/Text/HtmlTextPreviewerTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/HtmlToHtmlTests.cs b/UnitTests/Text/HtmlToHtmlTests.cs index 3058fa332f..2083b302f8 100644 --- a/UnitTests/Text/HtmlToHtmlTests.cs +++ b/UnitTests/Text/HtmlToHtmlTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/HtmlTokenTests.cs b/UnitTests/Text/HtmlTokenTests.cs index 4c416d8cc9..36c75387e1 100644 --- a/UnitTests/Text/HtmlTokenTests.cs +++ b/UnitTests/Text/HtmlTokenTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/HtmlTokenizerTests.cs b/UnitTests/Text/HtmlTokenizerTests.cs index f4ffbd0899..cfaff00a65 100644 --- a/UnitTests/Text/HtmlTokenizerTests.cs +++ b/UnitTests/Text/HtmlTokenizerTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/HtmlUtilsTests.cs b/UnitTests/Text/HtmlUtilsTests.cs index 656be07c51..731ab7be37 100644 --- a/UnitTests/Text/HtmlUtilsTests.cs +++ b/UnitTests/Text/HtmlUtilsTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/HtmlWriterTests.cs b/UnitTests/Text/HtmlWriterTests.cs index a4167b0955..2c3fdfee70 100644 --- a/UnitTests/Text/HtmlWriterTests.cs +++ b/UnitTests/Text/HtmlWriterTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/PlainTextPreviewerTests.cs b/UnitTests/Text/PlainTextPreviewerTests.cs index ce2279130a..10cc1a250c 100644 --- a/UnitTests/Text/PlainTextPreviewerTests.cs +++ b/UnitTests/Text/PlainTextPreviewerTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/RtfCompressedToRtfTests.cs b/UnitTests/Text/RtfCompressedToRtfTests.cs index 74e3dfec91..f5fd1eaf89 100644 --- a/UnitTests/Text/RtfCompressedToRtfTests.cs +++ b/UnitTests/Text/RtfCompressedToRtfTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/TextConverterTests.cs b/UnitTests/Text/TextConverterTests.cs index 143ef85cae..c901efa088 100644 --- a/UnitTests/Text/TextConverterTests.cs +++ b/UnitTests/Text/TextConverterTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/TextPreviewerTests.cs b/UnitTests/Text/TextPreviewerTests.cs index 5f9ec5451e..f139b6988c 100644 --- a/UnitTests/Text/TextPreviewerTests.cs +++ b/UnitTests/Text/TextPreviewerTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/TextToFlowedTests.cs b/UnitTests/Text/TextToFlowedTests.cs index 5fa76fd362..3c2b36cc37 100644 --- a/UnitTests/Text/TextToFlowedTests.cs +++ b/UnitTests/Text/TextToFlowedTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/TextToHtmlTests.cs b/UnitTests/Text/TextToHtmlTests.cs index a8e9c93fbe..651ba7bf9a 100644 --- a/UnitTests/Text/TextToHtmlTests.cs +++ b/UnitTests/Text/TextToHtmlTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/TextToTextTests.cs b/UnitTests/Text/TextToTextTests.cs index 06c42e0e7d..9c43078b2e 100644 --- a/UnitTests/Text/TextToTextTests.cs +++ b/UnitTests/Text/TextToTextTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/TrieTests.cs b/UnitTests/Text/TrieTests.cs index fcb6a04149..717a8ecfb7 100644 --- a/UnitTests/Text/TrieTests.cs +++ b/UnitTests/Text/TrieTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Text/UrlScannerTests.cs b/UnitTests/Text/UrlScannerTests.cs index 58f955a6e7..9103b3253f 100644 --- a/UnitTests/Text/UrlScannerTests.cs +++ b/UnitTests/Text/UrlScannerTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/TextPartTests.cs b/UnitTests/TextPartTests.cs index 41415f55ee..29508b903a 100644 --- a/UnitTests/TextPartTests.cs +++ b/UnitTests/TextPartTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/TextRfc822HeadersTests.cs b/UnitTests/TextRfc822HeadersTests.cs index 732e8f19c5..18f1349ab9 100644 --- a/UnitTests/TextRfc822HeadersTests.cs +++ b/UnitTests/TextRfc822HeadersTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Tnef/RtfCompressedToRtfTests.cs b/UnitTests/Tnef/RtfCompressedToRtfTests.cs index 8cdff6c17e..39d9b95ae4 100644 --- a/UnitTests/Tnef/RtfCompressedToRtfTests.cs +++ b/UnitTests/Tnef/RtfCompressedToRtfTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Tnef/TnefReaderStreamTests.cs b/UnitTests/Tnef/TnefReaderStreamTests.cs index 494382f064..0f47201960 100644 --- a/UnitTests/Tnef/TnefReaderStreamTests.cs +++ b/UnitTests/Tnef/TnefReaderStreamTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Tnef/TnefReaderTests.cs b/UnitTests/Tnef/TnefReaderTests.cs index afacbe844c..39bb5415f0 100644 --- a/UnitTests/Tnef/TnefReaderTests.cs +++ b/UnitTests/Tnef/TnefReaderTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Tnef/TnefTests.cs b/UnitTests/Tnef/TnefTests.cs index 62d86fc1fa..2cb5158f43 100644 --- a/UnitTests/Tnef/TnefTests.cs +++ b/UnitTests/Tnef/TnefTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -940,7 +940,7 @@ public void TestExtractedCharset () message = tnef.ConvertToMessage (); - Assert.IsInstanceOf (typeof (TextPart), message.Body); + Assert.That (message.Body, Is.InstanceOf ()); var text = (TextPart) message.Body; @@ -961,21 +961,21 @@ public void TestRichTextEml () message = tnef.ConvertToMessage (); - Assert.IsEmpty (message.Subject, "Subject"); + Assert.That (message.Subject, Is.Empty, "Subject"); Assert.That (message.Date, Is.EqualTo (DateTimeOffset.MinValue), "Date"); Assert.That (message.MessageId, Is.EqualTo ("DM5PR21MB0828DA2B8C88048BC03EFFA6CFA20@DM5PR21MB0828.namprd21.prod.outlook.com"), "Message-Id"); - Assert.IsInstanceOf (typeof (Multipart), message.Body); + Assert.That (message.Body, Is.InstanceOf ()); var multipart = (Multipart) message.Body; Assert.That (multipart.Count, Is.EqualTo (6)); - Assert.IsInstanceOf (typeof (TextPart), multipart[0]); - Assert.IsInstanceOf (typeof (MimePart), multipart[1]); - Assert.IsInstanceOf (typeof (MimePart), multipart[2]); - Assert.IsInstanceOf (typeof (MimePart), multipart[3]); - Assert.IsInstanceOf (typeof (MimePart), multipart[4]); - Assert.IsInstanceOf (typeof (MimePart), multipart[5]); + Assert.That (multipart[0], Is.InstanceOf ()); + Assert.That (multipart[1], Is.InstanceOf ()); + Assert.That (multipart[2], Is.InstanceOf ()); + Assert.That (multipart[3], Is.InstanceOf ()); + Assert.That (multipart[4], Is.InstanceOf ()); + Assert.That (multipart[5], Is.InstanceOf ()); var rtf = (TextPart) multipart[0]; Assert.That (rtf.ContentType.MimeType, Is.EqualTo ("text/rtf"), "MimeType"); diff --git a/UnitTests/Utils/ByteArrayBuilderTests.cs b/UnitTests/Utils/ByteArrayBuilderTests.cs index 19a04673c4..6466365e62 100644 --- a/UnitTests/Utils/ByteArrayBuilderTests.cs +++ b/UnitTests/Utils/ByteArrayBuilderTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Utils/CharsetUtilsTests.cs b/UnitTests/Utils/CharsetUtilsTests.cs index 7e57fa0c21..6e1cb58da5 100644 --- a/UnitTests/Utils/CharsetUtilsTests.cs +++ b/UnitTests/Utils/CharsetUtilsTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Utils/DateParserTests.cs b/UnitTests/Utils/DateParserTests.cs index 7a873b5e2e..9956d7591a 100644 --- a/UnitTests/Utils/DateParserTests.cs +++ b/UnitTests/Utils/DateParserTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Utils/MimeUtilsTests.cs b/UnitTests/Utils/MimeUtilsTests.cs index ae64b23c2a..991f4ec186 100644 --- a/UnitTests/Utils/MimeUtilsTests.cs +++ b/UnitTests/Utils/MimeUtilsTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Utils/PackedByteArrayTests.cs b/UnitTests/Utils/PackedByteArrayTests.cs index 34027b6e33..6afaed8eb2 100644 --- a/UnitTests/Utils/PackedByteArrayTests.cs +++ b/UnitTests/Utils/PackedByteArrayTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Utils/ParseUtilsTests.cs b/UnitTests/Utils/ParseUtilsTests.cs index 60b58ba43e..3eddd6a15b 100644 --- a/UnitTests/Utils/ParseUtilsTests.cs +++ b/UnitTests/Utils/ParseUtilsTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -65,7 +65,7 @@ public void TestSkipBadlyQuoted () var buffer = Encoding.ASCII.GetBytes ("\"This is missing the end quote."); int index = 0; - Assert.False (ParseUtils.SkipQuoted (buffer, ref index, buffer.Length, false), "Skipping an unterminated qstring should have failed."); + Assert.That (ParseUtils.SkipQuoted (buffer, ref index, buffer.Length, false), Is.True, "Skipping an unterminated qstring should have failed."); Assert.That (index, Is.EqualTo (buffer.Length), "The index should be at the end of the buffer."); index = 0; diff --git a/UnitTests/Utils/Rfc2047Tests.cs b/UnitTests/Utils/Rfc2047Tests.cs index 6b4a31ecf0..1f27f37494 100644 --- a/UnitTests/Utils/Rfc2047Tests.cs +++ b/UnitTests/Utils/Rfc2047Tests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTests/Utils/StringBuilderExtensionTests.cs b/UnitTests/Utils/StringBuilderExtensionTests.cs index cee343dc0b..272d42b9f4 100644 --- a/UnitTests/Utils/StringBuilderExtensionTests.cs +++ b/UnitTests/Utils/StringBuilderExtensionTests.cs @@ -3,7 +3,7 @@ // // Author: Jeffrey Stedfast // -// Copyright (c) 2013-2023 .NET Foundation and Contributors +// Copyright (c) 2013-2024 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal