Пример #1
0
        public DismFeatureInfoTest(TestWimTemplate template)
            : base(template)
        {
            _featureInfo.CustomProperty = ListToPtrArray(_customProperties);

            _featureInfo.CustomPropertyCount = (uint)_customProperties.Count;
        }
Пример #2
0
        protected DismTestBase(TestWimTemplate template, ITestOutputHelper testOutput)
            : base(template)
        {
            _testOutput = testOutput;

            _logFilePath = Path.Combine(TestDirectory, "dism.log");

            DismApi.Initialize(DismLogLevel.LogErrorsWarningsInfo, _logFilePath);
        }
Пример #3
0
        protected TestBase(TestWimTemplate template)
        {
            Template = template;

            MountPath = Directory.CreateDirectory(Path.Combine(TestDirectory, "mount")).FullName;

            TestAssemblyDirectory = Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath);

            InstallWimPath = Path.Combine(TestAssemblyDirectory, "install.wim");
        }
Пример #4
0
        public DismImageInfoTest(TestWimTemplate template)
            : base(template)
        {
            _imageInfo.Language             = ListToPtrArray(_languages);
            _imageInfo.LanguageCount        = (uint)_languages.Count;
            _imageInfo.DefaultLanguageIndex = 1;

            _imageInfo.CustomizedInfo = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(DismApi.DismWimCustomizedInfo_)));

            Marshal.StructureToPtr(_wimCustomizedInfo, _imageInfo.CustomizedInfo, false);
        }
Пример #5
0
 public DismAppxPackageCollectionTest(TestWimTemplate template)
     : base(template)
 {
 }
Пример #6
0
 public DismImageInfoCollectionTest(TestWimTemplate template)
     : base(template)
 {
 }
 public DismCustomPropertyCollectionTest(TestWimTemplate template)
     : base(template)
 {
 }
 public DismCustomPropertyTest(TestWimTemplate template)
     : base(template)
 {
 }
Пример #9
0
 public DismInitializeTest(TestWimTemplate template)
     : base(template)
 {
 }
 protected DismInstallWimTestBase(TestWimTemplate template, ITestOutputHelper testOutput)
     : base(template, testOutput)
 {
     _session = new Lazy <DismSession>(GetSession, isThreadSafe: true);
 }
Пример #11
0
 public DismFeatureTest(TestWimTemplate template)
     : base(template)
 {
 }
 public DismPackageInfoExTest(TestWimTemplate template)
     : base(template)
 {
 }
Пример #13
0
 public DismAppxPackageTest(TestWimTemplate template)
     : base(template)
 {
 }
Пример #14
0
 public ApplyUnattendTest(TestWimTemplate template, ITestOutputHelper testOutput)
     : base(template, testOutput)
 {
 }
 public DismDriverPackageTest(TestWimTemplate template)
     : base(template)
 {
 }
 public DismDriverPackageCollectionTest(TestWimTemplate template)
     : base(template)
 {
 }
Пример #17
0
 public DismCapabilityCollectionTest(TestWimTemplate template)
     : base(template)
 {
 }
 public DismMountedImageInfoTest(TestWimTemplate template)
     : base(template)
 {
 }
Пример #19
0
 protected DismStructTest(TestWimTemplate template)
     : base(template)
 {
 }
Пример #20
0
 public GetCapabilitiesTest(TestWimTemplate template, ITestOutputHelper testOutput)
     : base(template, testOutput)
 {
 }
Пример #21
0
 public DismFeatureCollectionTest(TestWimTemplate template)
     : base(template)
 {
 }
Пример #22
0
 protected DismCollectionTest(TestWimTemplate template)
     : base(template)
 {
 }
 public GetProvisionedAppxPackagesTest(TestWimTemplate template, ITestOutputHelper testOutput)
     : base(template, testOutput)
 {
 }
Пример #24
0
 public GetPackageInfoExTest(TestWimTemplate template, ITestOutputHelper testOutput)
     : base(template, testOutput)
 {
 }
Пример #25
0
 public DismWimCustomizedInfoTest(TestWimTemplate template)
     : base(template)
 {
 }
 public DismCapabilityInfoTest(TestWimTemplate template)
     : base(template)
 {
 }
Пример #27
0
 public GetImageInfoTest(TestWimTemplate template, ITestOutputHelper testOutput)
     : base(template, testOutput)
 {
 }
Пример #28
0
 public CheckImageHealthTest(TestWimTemplate template, ITestOutputHelper testOutput)
     : base(template, testOutput)
 {
 }