public void FileAlreadyExistsExceptionCtor2() { FileAlreadyExistsException ex = new FileAlreadyExistsException( "path" ); ex.Message.Should().Be( "Cannot create a file when that file already exists." ); ex.Path.Should().Be( "path" ); }
public void FileAlreadyExistsExceptionCtor1() { FileAlreadyExistsException ex = new FileAlreadyExistsException( "message", "path" ); ex.Message.Should().Be( "message" ); ex.Path.Should().Be( "path" ); }