Esempio n. 1
0
        static void ResetAndAssert(IMimeEncoder encoder)
        {
            // clone the encoder at it's initial state
            var clone = encoder.Clone();

            // set some random state on the clone
            SetRandomState(clone);

            // reset the clone and make sure it matches
            clone.Reset();

            AssertState(encoder, clone);
        }
Esempio n. 2
0
        static void CloneAndAssert(IMimeEncoder encoder)
        {
            // first, set some random state
            SetRandomState(encoder);

            var clone = encoder.Clone();

            Assert.AreEqual(encoder.Encoding, clone.Encoding);

            AssertState(encoder, clone);

            AssertArgumentExceptions(encoder);
        }
Esempio n. 3
0
		static void ResetAndAssert (IMimeEncoder encoder)
		{
			// clone the encoder at it's initial state
			var clone = encoder.Clone ();

			// set some random state on the clone
			SetRandomState (clone);

			// reset the clone and make sure it matches
			clone.Reset ();

			AssertState (encoder, clone);
		}
Esempio n. 4
0
		static void CloneAndAssert (IMimeEncoder encoder)
		{
			// first, set some random state
			SetRandomState (encoder);

			var clone = encoder.Clone ();

			Assert.AreEqual (encoder.Encoding, clone.Encoding);

			AssertState (encoder, clone);

			AssertArgumentExceptions (encoder);
		}
Esempio n. 5
0
		static void CloneAndAssert (IMimeEncoder encoder)
		{
			// first, set some random state
			SetRandomState (encoder);

			var clone = encoder.Clone ();

			AssertState (encoder, clone);
		}