Esempio n. 1
0
        public void Validate_Should_Require_Parameter_ContentFill_To_Not_Be_Default(ContentFillType contentFillType, bool expectedValid, string expectedMessage, string message)
        {
            // ARRANGE
            var parameters = new Parameters
            {
                FileName        = "filename",
                ContentFill     = contentFillType,
                ContentTemplate = "content"
            };

            // ACT
            var actual = parameters.Validate();

            // ASSERT
            actual.Valid.Should().Be(expectedValid, message);
            actual.Message.Should().Be(expectedMessage, message);
        }
Esempio n. 2
0
        public void ParseArguments_Should_Handle_Fill_Argument(string argument, string value, ContentFillType expected, string message)
        {
            // ACT
            var parameters = Helper.ParseArguments("fileName", $"{argument}={value}");

            // ASSERT
            parameters.ContentFill.Should().Be(expected, message);
        }