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(); }
#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); }