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); }
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); }
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); }
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); }
static void CloneAndAssert (IMimeEncoder encoder) { // first, set some random state SetRandomState (encoder); var clone = encoder.Clone (); AssertState (encoder, clone); }