public void WithFile_SetFileNameProperty() { // Arrange var fileName = Guid.NewGuid().ToString(); var sut = new LoggerOptions(); // Act sut.WithFile(fileName); // Assert sut.FileName.Should().Be(fileName); }