コード例 #1
0
        public void NSeedDll_Info()
        {
            NSeed.Run("info");

            Then(NSeed.Response)
            .ShouldNotBeSuccessful(Errors.WorkingDirectoryDoesNotContainAnyFile);
        }
コード例 #2
0
        public void NSeedDll_ProjectNotDefine()
        {
            NSeed.Run("info --project");

            Then(NSeed.Response)
            .ShouldNotBeSuccessful(argOutput: "Missing value for option 'project'.");
        }
コード例 #3
0
        public void NSeedDll_Info_HelpOption()
        {
            NSeed.Run("info --help");

            Then(NSeed.Response)
            .ShouldBeSuccessful()
            .ShouldShowHelpMessageForInfoSubcommand();
        }
コード例 #4
0
        public void NseedDll_Info_Core_EmptySeedBucketProject()
        {
            Skip.IfNot(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));

            NSeed.Run("info --project ", NSeed.Scenario("EmptySeedBucket.DotNetCore"));

            Then(NSeed.Response)
            .ShouldBeSuccessful();
        }
コード例 #5
0
        public void NseedDll_Info_ClassicConsoleApp_NoSeedProject()
        {
            Skip.IfNot(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));

            NSeed.Run("info --project ", NSeed.Scenario("NetClassicConsoleApp"));

            Then(NSeed.Response)
            .ShouldNotBeSuccessful(Resources.Info.Errors.SeedBucketProjectCouldNotBeFound);
        }