Methods that use yield are not executed until the result is iterated. These methods are not tested as no attempt is made to iterate the return value.
publicstaticIEnumerable<string>YieldExample(stringstringValue){if(stringValue==null)thrownewArgumentNullException("stringValue");yieldreturnstringValue;}
Methods that use yield are not executed until the result is iterated. These methods are not tested as no attempt is made to iterate the return value.