private string FlushCodeToDisk(CustomAttributeDeclaration[] assemblyAttributes, AssemblyContext assemblyContext) { var assemblyPath = assemblyContext.GeneratedCodeFlusher.FlushCodeToDisk(assemblyAttributes); assemblyContext.ResetParticipantState(); return(assemblyPath); }
public void ResetParticipantState() { var participantState = _assemblyContext.ParticipantState; _assemblyContext.ResetParticipantState(); Assert.That(_assemblyContext.ParticipantState, Is.Not.SameAs(participantState)); }