Ejemplo n.º 1
0
        public void Exeption_no_parameters_specified()
        {
            // arrange
            var target = new HyperV();
            Dictionary<string, object> args = new Dictionary<string, object>
            {
            };
            WorkflowInvoker invoker = new WorkflowInvoker(target);

            // act
            var results = invoker.Invoke(args);

            // assert
            // attribute checks value
        }
Ejemplo n.º 2
0
        public void Exception_thrown_if_no_VM_specified()
        {
            // arrange
            var target = new HyperV();
            Dictionary<string, object> args = new Dictionary<string, object>
            {
                 { "ServerName",  "Server" }
            };
            WorkflowInvoker invoker = new WorkflowInvoker(target);

            // act
            var results = invoker.Invoke(args);

            // assert
            // attribute checks value
        }