private void When_creating_builder_without_drive_C_it_must_fail() { // Arrange var builder = new FakeFileSystemBuilder(); // Act Action action = () => builder.WithoutDefaultDriveC().Build(); // Assert action.Should().ThrowExactly <InvalidOperationException>().WithMessage("System contains no drives."); }