winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Errors.cpp (567B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #include "TestCommon.h"
      5 #include <AppInstallerErrors.h>
      6 
      7 using namespace AppInstaller;
      8 using namespace AppInstaller::Utility;
      9 using namespace std::string_literals;
     10 
     11 TEST_CASE("EnsureSortedErrorList", "[errors]")
     12 {
     13     auto errors = Errors::GetWinGetErrors();
     14     for (size_t i = 1; i < errors.size(); ++i)
     15     {
     16         INFO(errors[i - 1]->Symbol() << " then " << errors[i]->Symbol());
     17         REQUIRE(errors[i]->Value() > errors[i - 1]->Value());
     18     }
     19 }