public void VerifyExceptionThrown()
        {
            _defaults.Insert(1, 555);
            MoqUtil.SetupRandMock(_defaults.ToArray());

            Assert.Throws <RandomNumberException>(() => DomainFactory.Generator.GetSentences(1));
        }
        public void VerifyInvalidValueHandled()
        {
            _defaults.Insert(6, 888);
            MoqUtil.SetupRandMock(_defaults.ToArray());

            Assert.Throws <RandomNumberException>(() => DomainFactory.Generator.GetSentences(1));
        }
コード例 #3
0
        public void VerifyInvalidValueHandled()
        {
            _defaults.Insert(8, 50);
            MoqUtil.SetupRandMock(_defaults.ToArray());

            DomainFactory.Generator.GetSentences(1);
        }
コード例 #4
0
        public void VerifyExceptionThrownForInvalidInput()
        {
            _defaults.ReplaceAt(4, 50);
            MoqUtil.SetupRandMock(_defaults.ToArray());

            Assert.Throws <RandomNumberException>(() => DomainFactory.Generator.GetSentences(1));
        }
        public void VerifyArticulatedPropositionGutFeeling()
        {
            _defaults.Insert(1, 21);
            MoqUtil.SetupRandMock(_defaults.ToArray());
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            Assert.AreEqual("Our gut feeling is that we continue to work tirelessly and diligently to strategically streamline the process going forward.", output.Text);
        }
コード例 #6
0
        public void VerifyChiefTitle()
        {
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("The Chief of Marketing culturally exceeds expectations at the individual, team and organizational level.", output.Text);
        }
コード例 #7
0
        public void VerifyEventualAdverbConservatively()
        {
            _defaults.Insert(4, 17);
            MoqUtil.SetupRandMock(_defaults.ToArray());
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            Assert.AreEqual("We continue to work tirelessly and diligently to conservatively streamline the process going forward.", output.Text);
        }
        public void VerifyArticulatedPropositionSameTime()
        {
            _defaults.Insert(1, 26);
            MoqUtil.SetupRandMock(_defaults.ToArray());
            Sentence output = DomainFactory.Generator.GetSentences(1)[0];

            Assert.AreEqual("We continue to work tirelessly and diligently to strategically streamline the process going forward. At the same time, we must activate the matrix to strategically streamline the process going forward.", output.Text);
        }
コード例 #9
0
        public void VerifySpacingInActingHead()
        {
            _defaults.Insert(6, 2);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("The Acting Head of Marketing culturally exceeds expectations at the individual, team and organizational level.", output.Text);
        }
コード例 #10
0
        public void SemiColonPlacement28()
        {
            _defaults.Insert(1, 28);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("Performance, leverage and time-phase drive the human resources, whilst innovations efficiently influence the group.", output.Text);
        }
コード例 #11
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);
        }
コード例 #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);
        }
コード例 #13
0
        public void VerifyFaukonPursuing()
        {
            _defaults.Insert(3, 6);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("Pursuing this route will enable us to credibly streamline the process going forward.", output.Text);
        }
        public void VerifyGoingForward()
        {
            _defaults.Add(1);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("The partners diligently avoid gaps going forward.", output.Text);
        }
コード例 #15
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);
        }
コード例 #16
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);
        }
コード例 #17
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);
        }
コード例 #18
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);
        }
コード例 #19
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);
        }
コード例 #20
0
        public void VerifyFaukonWorkingHard()
        {
            _defaults.Insert(3, 8);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("We are working hard to credibly streamline the process going forward.", output.Text);
        }
コード例 #21
0
        public void VerifyFaukonControllingShould()
        {
            _defaults.Insert(3, 4);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("Controlling should credibly streamline the process going forward.", output.Text);
        }
コード例 #22
0
        public void GetThingFourthBranch()
        {
            _defaults.Insert(4, 72);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("The holistic and/or cost-effective leverage 200% enforces our new, focused diversification going forward.", output.Text);
        }
コード例 #23
0
        public void VerifyFaukonExtraMile()
        {
            _defaults.Insert(3, 7);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("We will go the extra mile to credibly streamline the process going forward.", output.Text);
        }
コード例 #24
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);
        }
        public void VerifyBlankOutputForInvalidNumber()
        {
            _defaults.Add(222);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("The partners diligently avoid gaps.", output.Text);
        }
コード例 #26
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);
        }
コード例 #27
0
        public void VerifyExceptionThrownForInvalidImprovement()
        {
            _defaults.Insert(5, 1);
            _defaults.Insert(6, 123);

            MoqUtil.SetupRandMock(_defaults.ToArray());

            Assert.Throws <RandomNumberException>(() => DomainFactory.Generator.GetSentences(1));
        }
        public void VerifyIndividualOutput()
        {
            _defaults.Add(33);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("The partners diligently avoid gaps at the individual, team and organizational level.", output.Text);
        }
コード例 #29
0
        public void VerifyResourceSpacing()
        {
            _defaults.Insert(4, 11);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("The resource manages a cost-effective, constructive focus at the end of the day, while the standard-setters credibly maximise the value throughout the organisation.", output.Text);
        }
コード例 #30
0
        public void BuildPluralVerbJustifies()
        {
            _defaults.Insert(7, 65);
            MoqUtil.SetupRandMock(_defaults.ToArray());

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

            Assert.AreEqual("The project manager proactively justifies a strategic, cost-effective roadmap across the board.", output.Text);
        }