winget-cli

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

Argument.cpp (511B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #include "TestCommon.h"
      5 #include <Argument.h>
      6 
      7 using namespace AppInstaller::CLI;
      8 
      9 TEST_CASE("EnsureAllArgumentsDefined", "[argument]")
     10 {
     11     using Arg_t = std::underlying_type_t<Execution::Args::Type>;
     12     for (Arg_t i = static_cast<Arg_t>(0); i < static_cast<Arg_t>(Execution::Args::Type::Max); ++i)
     13     {
     14         REQUIRE_NOTHROW(ArgumentCommon::ForType(static_cast<Execution::Args::Type>(i)));
     15     }
     16 }