public void WriteEventCentricTestSpecificationResultsInExpectedOutput( EventCentricTestSpecification specification, string result) { using (var writer = new StringWriter()) { var sut = new TestSpecificationTextWriter(writer); sut.Write(specification); Assert.That(writer.ToString(), Is.EqualTo(result)); } }