Ejemplo n.º 1
0
//        [Description("New-UiaWizard")]
//        [Category("Fast")]
//        [Category("Wizard")]
        public void NewWizard_ComplexName()
        {
            const string expectedName = @"\\aa//bb``cc";

            UnitTestingHelper.CreateWizard(expectedName, null);

            MbUnit.Framework.Assert.AreEqual(
                expectedName,
                ((Wizard)PSTestLib.UnitTestOutput.LastOutput[0]).Name);
        }
Ejemplo n.º 2
0
//        [Description("New-UiaWizard")]
//        [Category("Fast")]
//        [Category("Wizard")]
        public void NewWizard_StandardName()
        {
            const string expectedName = "name";

            UnitTestingHelper.CreateWizard(expectedName, null);

            MbUnit.Framework.Assert.AreEqual(
                expectedName,
                ((Wizard)PSTestLib.UnitTestOutput.LastOutput[0]).Name);
        }
Ejemplo n.º 3
0
        public void NewWizard_DuplicatedName()
        {
            const string expectedName = "name";

            UnitTestingHelper.CreateWizard(expectedName, null);

            //Assert.Throws<Type>(UnitTestingHelper.CreateWizard(expectedName, null));

//            createWizard(expectedName, null);
//
//            MbUnit.Framework.Assert.AreEqual(
//                expectedName,
//                ((Wizard)(object)PSTestLib.UnitTestOutput.LastOutput[0]).Name);
        }