Exemple #1
0
        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();
        }
Exemple #2
0
 private void When_connection_is_ensured()
 {
     _result = Net.Ensure(Resource, Who);
 }
Exemple #3
0
 private void When_connection_deleted()
 {
     _result = Net.Delete(Resource);
 }
Exemple #4
0
 private void When_connection_added_as(NetworkCredential who)
 {
     _result = Net.Use(Resource, who);
 }
Exemple #5
0
 private void When_conections_listed()
 {
     _result = Net.List();
 }
Exemple #6
0
 public void SetUp()
 {
     _result = null;
     Given_there_is_test_data_available();
 }