예제 #1
0
        public void ReturnᅠSuccessᅠvalidationᅠresponse(string projectName)
        {
            Subcommand.SetResolvedName(projectName);

            Validate().Should().NotBeNull().And.BeOfType <ValidationResult>();
            Validate().IsValid.Should().BeTrue();
            Validate().Message.Should().BeEmpty();
        }
예제 #2
0
#pragma warning restore xUnit1019 // MemberData must reference a member providing a valid data type
        public void Returnᅠinvalidᅠvalidationᅠresponseᅠwithᅠerrorᅠmessage(string projectName, string errorMessage)
        {
            Subcommand.SetResolvedName(projectName);

            Validate().Should().NotBeNull().And.BeOfType <ValidationResult>();
            Validate().IsValid.Should().BeFalse();
            Validate().Message.Should().Be(errorMessage);
        }