public void EndOfInput_ShouldCloseAndDisposeReader() { // Arrange var testee = CreateTestee(); testee.StartOfInput(); // Act testee.EndOfInput(); // Assert A.CallTo(() => _yamlTextReaderMock.Close()).MustHaveHappened(); A.CallTo(() => _yamlTextReaderMock.Dispose()).MustHaveHappened(); }
public void EndOfInput() { _reader.Close(); _reader.Dispose(); }