コード例 #1
0
 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" );
 }
コード例 #2
0
 public void FileAlreadyExistsExceptionCtor1()
 {
     FileAlreadyExistsException ex = new FileAlreadyExistsException( "message", "path" );
     ex.Message.Should().Be( "message" );
     ex.Path.Should().Be( "path" );
 }