Exemplo n.º 1
0
        public void ItRunsWithQuietVerbosityByDefault()
        {
            var result = new DotnetToolCommand(Log)
                         .Execute("install", "-g", "nonexistent_tool_package");

            result
            .Should()
            .Fail()
            .And
            .NotHaveStdOutContaining("Restoring");
        }
Exemplo n.º 2
0
        public void ItRunsWithTheSpecifiedVerbosity()
        {
            var result = new DotnetToolCommand(Log)
                         .Execute("install -g -v:n nonexistent_tool_package".Split());

            result
            .Should()
            .Fail();

            result
            .StdOut
            .Should()
            .ContainVisuallySameFragmentIfNotLocalized("Restoring");
        }