Exemplo n.º 1
0
        public void FixSpaceAfterEvents()
        {
            MoqUtil.SetupRandMock(0, 18, 9, 2, 3, 25, 86, 37, 42, 138, 68, 76, 13, 139, 93, 381, 132, 206, 64, 19, 2, 6, 22, 48, 113, 193, 11, 13, 40);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The customers visualise medium-to-long-term pre-plans; this is why commitment and plan genuinely engage robust trigger events.", output.Text);
        }
Exemplo n.º 2
0
        public void OtherVowelUsage()
        {
            MoqUtil.SetupRandMock(0, 16, 7, 1, 9, 8, 90, 26, 44, 212, 83, 15, 121);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The thought leader culturally strategises a usage-based effectiveness.", output.Text);
        }
Exemplo n.º 3
0
        public void VerifyBreakthroughs()
        {
            MoqUtil.SetupRandMock(0, 6, 28, 2, 8, 57, 30, 1, 93, 173, 186, 14, 133);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The stakeholders manage breakthroughs.", output.Text);
        }
Exemplo n.º 4
0
        public void FixVowelAtStartUnderlying()
        {
            MoqUtil.SetupRandMock(0, 19, 66, 1, 52, 40, 103, 98, 10, 49, 2, 75, 8, 3, 48, 68, 2, 86, 187, 140, 4, 88, 2, 87, 12, 1, 86);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("An underlying convergence incentivises the customers; nevertheless our mindsets influence the key people.", output.Text);
        }
Exemplo n.º 5
0
        public void FixDoubleSpaceProduces()
        {
            MoqUtil.SetupRandMock(0, 10, 2, 3, 38, 86, 31, 1, 60, 171, 10, 9, 19, 1, 57, 39, 411, 50, 14, 8, 1);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The reporting unit should embrace parallel, goal-directed roles and responsibilities because a non-standard implication produces measured growth.", output.Text);
        }
Exemplo n.º 6
0
        public void FixExtraSpaceBeforeComma()
        {
            MoqUtil.SetupRandMock(0, 18, 100, 45, 71, 268, 123, 88, 1, 94, 4, 17, 1, 1, 3, 6, 3, 1, 7, 128, 56, 1, 19, 109, 304, 153, 4, 72, 2, 98, 11, 2, 21);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("Cross fertilization, investor confidence and branding drive the Managing Co-Head of Customer Relations; this is why our long-term change promotes the human resources relative to our peers.", output.Text);
        }
Exemplo n.º 7
0
        public void TestAnalysisSpacing()
        {
            MoqUtil.SetupRandMock(0, 23, 57, 2, 54, 128, 177, 6, 10, 14, 35, 1, 92, 1, 17, 4, 20, 13, 14, 92, 42, 1, 17, 3, 7, 1, 3, 49, 95, 37, 98, 231, 26, 13, 70);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("Streamlining matrices motivate the Chief Marketing Officer, while the Chief Internal Audit Officer visualises a value creation.", output.Text);
        }
Exemplo n.º 8
0
        public void UnnecessaryComma()
        {
            MoqUtil.SetupRandMock(0, 17, 34, 1, 11, 28, 76, 4, 3, 86, 243, 158, 12, 14, 97);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The resource improves a customer-centric, innovation-driven system.", output.Text);
        }
Exemplo n.º 9
0
        public void VerifyCommaAfterDefinition()
        {
            MoqUtil.SetupRandMock(0, 25, 1, 7, 70, 36, 16, 7, 245, 204, 123, 57, 7, 3, 96, 346, 148, 108, 28, 67, 1, 28, 8, 97, 38, 10, 25);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("We will go the extra mile to focus on outstanding, high-definition action plans across the board, while scaling and document synergise an intellect as a Tier 1 company.", output.Text);
        }
Exemplo n.º 10
0
        public void TestMatrixSingularSphereSpacing()
        {
            MoqUtil.SetupRandMock(0, 20, 76, 1, 73, 8, 2, 12, 49, 1, 54, 22, 89, 369, 6, 12, 4, 21, 25, 2, 10, 75, 25, 56, 62, 163, 66, 177, 4, 56);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("A measured improvement engages our sphere relative to our peers; whereas the partners foster our high-performing knowledge transfers.", output.Text);
        }
Exemplo n.º 11
0
        public void FullStopErrorProjections()
        {
            MoqUtil.SetupRandMock(0, 19, 24, 2, 5, 49, 17, 36, 8, 25, 161, 80, 122, 1, 134, 5, 5, 5, 20, 26, 1, 88, 182, 72, 5, 146);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The resources maximise the cultural, fast-growth business philosophies; nevertheless we must activate the silo to efficiently manage our projections.", output.Text);
        }
Exemplo n.º 12
0
        public void FixBandWithes()
        {
            MoqUtil.SetupRandMock(0, 6, 28, 2, 8, 57, 30, 1, 93, 173, 78, 14, 133);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The stakeholders manage bandwidths.", output.Text);
        }
Exemplo n.º 13
0
        public void VerifyReachOutTo()
        {
            MoqUtil.SetupRandMock(0, 8, 46, 2, 9, 66, 66, 62, 17, 143, 189, 65, 6, 26);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The standard-setters reach out to our value-driven initiatives up-front.", output.Text);
        }
Exemplo n.º 14
0
        public void PluralisePhraseWithCh()
        {
            MoqUtil.SetupRandMock(0, 1, 7, 1, 17, 1, 4, 5, 6, 3, 2, 14, 8, 9, 62, 33);

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The Head of Marketing culturally catches the high ball at the individual, team and organizational level.", output.Text);
        }
Exemplo n.º 15
0
        public void VerifyNumberingStartsAt1()
        {
            List <Sentence> output = DomainFactory.Generator.GetSentences(5);

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual(5, output.Count);
            Assert.AreEqual(1, output[0].ID);
            Assert.AreEqual(5, output[4].ID);
        }
Exemplo n.º 16
0
        public void PluraliseElevenWordPhrase()
        {
            MoqUtil.SetupRandMock(0, 1, 7, 1, 17, 1, 4, 5, 6, 3, 2, 14, 8, 9, 5, 33);

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The Head of Marketing culturally figures out where we come from, where we are going to at the individual, team and organizational level.", output.Text);
        }
Exemplo n.º 17
0
        public void FixIssuesPlural()
        {
            MoqUtil.SetupRandMock(0, 1, 7, 1, 17, 1, 4, 5, 6, 3, 2, 14, 8, 9, 2, 33);

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The Head of Marketing culturally addresses the overarching issues at the individual, team and organizational level.", output.Text);
        }
Exemplo n.º 18
0
        public void FixAnotherSpaceBeforeFullStop()
        {
            // This test verifies the last branch in GetProposition (result > 97 && result < 101)

            MoqUtil.SetupRandMock(0, 27, 67, 2, 60, 88, 88, 65, 8, 45, 1, 61, 9, 8, 17, 7, 2, 99, 73, 424, 182, 427, 99, 83, 2, 5, 23, 66, 131, 38, 159, 2, 42);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("Well-communicated initiatives inspire the powerful champion reaped from our proven improvement. As a result uniformity, leadership strategy and infrastructure structure the sustainable support structures.", output.Text);
        }
Exemplo n.º 19
0
        public void FixExtraSpaceAddsValue()
        {
            MoqUtil.SetupRandMock(0, 17, 55, 1, 100, 105, 186, 3, 30, 186, 102, 1);
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            // This should be fixed by the update to GetThingVerbAndEnding()
            // Assert.AreEqual("Our dynamic breakthrough adds  value.", output.Text);

            // This one arose instead during testing.
            Assert.AreEqual("Our breakthrough adds value going forward.", output.Text);
        }
Exemplo n.º 20
0
        public void NewPluralProblem()
        {
            List <int> defaults = new List <int> {
                0, 17, 31, 1, 2, 21, 10, 31, 143,
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The group seamlessly stays ahead.", output.Text);
        }
Exemplo n.º 21
0
        public void FullStopSpaceBefore()
        {
            List <int> defaults = new List <int> {
                0, 1, 93, 306, 129, 232, 117, 70, 2, 84, 10, 4, 138
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("Branding strategy and say/do ratio transfer the clients.", output.Text);
        }
Exemplo n.º 22
0
        public void EnsureDeEscalationSpacing()
        {
            List <int> defaults = new List <int> {
                0, 23, 34, 2, 6, 4, 32, 2, 4, 8, 4, 10, 11, 1, 7, 1, 8, 1, 16, 2, 1, 9, 6, 4, 3, 2, 1
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The team players proactively target corporate, proactive roles and responsibilities going forward, while the powerful champion interactively targets our cost-effective, key strategy within the industry.", output.Text);
        }
Exemplo n.º 23
0
        public void FixSpaceAtEnd()
        {
            List <int> defaults = new List <int> {
                0, 6, 26, 1, 2, 13, 95, 2, 4, 1, 4, 8, 203, 1, 2, 10, 2, 4, 6, 9, 50, 11, 8
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The group expediently targets an efficient, proactive intelligence going forward.", output.Text);
        }
Exemplo n.º 24
0
        public void FixMissingWord()
        {
            List <int> defaults = new List <int> {
                0, 5, 43, 1, 15, 4, 16, 8, 1, 9, 3, 1, 1, 1, 1
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The Chief Human Resources Officer technically streamlines the process going forward.", output.Text);
        }
Exemplo n.º 25
0
        public void SpacingAgain()
        {
            List <int> defaults = new List <int> {
                0, 26, 40, 1, 1, 21, 61, 1, 2, 3, 2, 9, 280, 11, 3, 9, 60, 1, 7, 1, 5, 7, 8, 1, 5, 2, 90, 2, 1, 7
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The steering committee seamlessly manages a constructive, strategic governance by leveraging the parallel, efficient tactics. At the same time, we will go the extra mile to culturally figure out where we come from, where we are going to within the industry.", output.Text);
        }
Exemplo n.º 26
0
        public void SpacingErrorMeasurementShorter()
        {
            List <int> defaults = new List <int> {
                0, 10, 75, 1, 89, 117, 162, 5, 46, 1, 16, 17, 104, 285, 37, 8, 89
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("Our footprint influences a content.", output.Text);
        }
Exemplo n.º 27
0
        public void SpacingErrorAvoids()
        {
            List <int> defaults = new List <int> {
                0, 25, 10, 1, 12, 16, 11, 3, 1, 5, 7, 61, 5, 90, 16, 16, 1, 101, 4, 1, 2, 3, 4, 5, 6, 7, 8
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("The senior support staff significantly avoids our issues throughout the organisation, while expectations and allocations interactively streamline our constructive, proactive market forces throughout the organisation.", output.Text);
        }
Exemplo n.º 28
0
        public void SpaceBeforeFullStop()
        {
            List <int> defaults = new List <int> {
                0, 2, 57, 2, 13, 135, 239, 183, 60, 8, 9, 2, 3, 7, 25, 191, 143, 179, 4, 49
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("Time-phased and innovative strategy formulations technically leverage our rock-solid capabilities.", output.Text);
        }
        public void BuildPluralVerbFosterThing()
        {
            List <int> defaults = new List <int> {
                0, 5, 74, 1, 4, 17, 7, 4, 5, 3, 9, 10, 29, 1, 5, 4, 8, 2, 9, 8
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("Our optimal, global strategy quickly fosters the strong, proactive organizing principles by thinking outside the box.", output.Text);
        }
Exemplo n.º 30
0
        public void SpacingErrorPrioritise()
        {
            List <int> defaults = new List <int> {
                0, 13, 61, 2, 1, 168, 86, 143, 104, 12, 20, 1, 69, 7, 12, 9
            };

            MoqUtil.SetupRandMock(defaults.ToArray());

            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            MoqUtil.UndoMockRandomNumber();

            Assert.AreEqual("Bottom-up, customer-centric supply-chains efficiently prioritise the senior support staff by thinking outside the box.", output.Text);
        }