Пример #1
0
        public void Should_Be_Add_Texts_Concat_Sequentially_Success()
        {
            //Arrange
            var line = new LineBuilder();

            var firstText  = FakerPrimitiveTypes.GetSampleText(0, 10000);
            var secondText = FakerPrimitiveTypes.GetSampleText(0, 10000);

            line.AddTextsConcat("before-", "-after", firstText, secondText);

            //Act
            var validateTest = line.GetCurrentPosition() == 2 &&
                               line.GetPosition($"before-{firstText}-after") == 1 &&
                               line.GetPosition($"before-{secondText}-after") == 2;

            //Assert
            validateTest.Should().BeTrue();
        }