public void Should_Throw_If_FileSystem_Is_Null()
                {
                    // Given, When
                    var result = Record.Exception(() => FileSystemExtensions.Exist(null, (FilePath)"file.txt"));

                    // Then
                    AssertEx.IsArgumentNullException(result, "fileSystem");
                }
Beispiel #2
0
                public void Should_Throw_If_FileSystem_Is_Null()
                {
                    // Given, When
                    var result = Record.Exception(() => FileSystemExtensions.Exist(null, (FilePath)"file.txt"));

                    // Then
                    result.ShouldBeOfType <ArgumentNullException>()
                    .And().ParamName.ShouldBe("fileSystem");
                }