public void Should_Open_Writer_When_Mode_Is_Write() { //Arrange _csvReader = Substitute.For <ICSVReader>(); _csvWriter = Substitute.For <ICSVWriter>(); _csvReaderWriter = new CSVReaderWriter(_csvReader, _csvWriter); //Act _csvReaderWriter.Open(FilePath, CSVReaderWriter.Mode.Write); //Assert _csvWriter.Received().Open(FilePath); _csvReader.DidNotReceive().Open(FilePath); }