public void Adding_a_connection_that_is_not_a_network_resource_returns_error() { _result = Use.Go("C:\\Temp", Who); var theExpectedError = String.Format( "System error 67 has occurred.{0}{0}" + "The network name cannot be found.", Environment.NewLine ); Then_error(Is.EqualTo(theExpectedError)); Then_process_exits_with_status(2); Then_process_is_not_running(); }
private void When_connection_is_ensured() { _result = Net.Ensure(Resource, Who); }
private void When_connection_deleted() { _result = Net.Delete(Resource); }
private void When_connection_added_as(NetworkCredential who) { _result = Net.Use(Resource, who); }
private void When_conections_listed() { _result = Net.List(); }
public void SetUp() { _result = null; Given_there_is_test_data_available(); }