public void SetDefaultStartupAppTest_Existing()
        {
            MsIotApiWrapper msIotApiWrapper = new MsIotApiWrapper("127.0.0.1", "user", "password", new MockHttpMessageHandler());
            AppxPackage     existingApp     = new AppxPackage
            {
                CanUninstall      = true,
                PackageFullName   = "ExistingPackageFullName",
                PackageName       = "ExistingAppName",
                PackageRelativeId = "ExistingPackageRelativeId"
            };

            Assert.DoesNotThrow(() => msIotApiWrapper.SetDefaultStartupApp(existingApp));
        }
        public void SetDefaultStartupAppTest_NotExisting()
        {
            MsIotApiWrapper msIotApiWrapper = new MsIotApiWrapper("127.0.0.1", "user", "password", new MockHttpMessageHandler());
            AppxPackage     existingApp     = new AppxPackage
            {
                CanUninstall      = true,
                PackageFullName   = "NotExistingPackageFullName",
                PackageName       = "NotExistingAppName",
                PackageRelativeId = "NotExistingPackageRelativeId"
            };
            AggregateException exception = Assert.Throws <AggregateException>(() => msIotApiWrapper.SetDefaultStartupApp(existingApp));

            Assert.That(exception.InnerException.Message.Contains("500"));
        }