Esempio n. 1
0
        public void Should_Have_ProcessRunner()
        {
            // Arrange
            var f  = new TestContainer().RegisterAll().Resolve <VirtualMachineFactory>();
            var vm = f.CreateFromName("");

            // Act
            var runner = vm.ProcessRunner;

            // Assert
            Assert.IsTrue(runner is IProcessRunner);
            Assert.IsNotNull(runner);
        }
Esempio n. 2
0
        public void Create_VM_From_Name()
        {
            // Arrange
            var          f    = new TestContainer().RegisterAll().Resolve <VirtualMachineFactory>();
            const string Name = "testName";

            // Act
            VirtualMachine vm = f.CreateFromName(Name);

            // Assert
            Assert.IsNotNull(vm);
            Assert.AreEqual(Name, vm.Name);
        }