Exemple #1
0
        public void Inline_Wrapped_Text()
        {
            //setup the new test data set
            Type type = typeof(TestData); // MyClass is static class with static properties

            foreach (var p in type.GetFields())
            {
                string newText = "This is inline " + p.GetValue(null) + " text that is wrapped";
                p.SetValue(null, newText);
            }

            Tests_SingleAuthor singleAuthorsTests = new Tests_SingleAuthor();

            singleAuthorsTests.Inline_SingleAuthor_OneReference();
            singleAuthorsTests.Inline_SingleAuthor_TwoReferences();
            singleAuthorsTests.Inline_SingleAuthor_ThreeReferences();

            Tests_TwoAuthors twoAuthorsTests = new Tests_TwoAuthors();

            twoAuthorsTests.Inline_TwoAuthors_OneReference();
            twoAuthorsTests.Inline_TwoAuthors_TwoReferences();
            twoAuthorsTests.Inline_TwoAuthors_ThreeReferences();

            Tests_ThreeAuthors threeAuthorsTests = new Tests_ThreeAuthors();

            threeAuthorsTests.Inline_ThreeAuthors_OneReference();
            threeAuthorsTests.Inline_ThreeAuthors_TwoReferences();
        }
Exemple #2
0
        public void Tests_References_With_EndText()
        {
            //setup the new test data set
            Type type = typeof(TestData); // MyClass is static class with static properties

            foreach (var p in type.GetFields())
            {
                string newText = p.GetValue(null) + ". This is the new ending text";
                p.SetValue(null, newText);
            }
            Tests_SingleAuthor singleAuthorsTests = new Tests_SingleAuthor();

            singleAuthorsTests.End_SingleAuthor_OneReference();
            singleAuthorsTests.End_SingleAuthor_TwoReferences();
            singleAuthorsTests.End_SingleAuthor_ThreeReferences();

            Tests_TwoAuthors twoAuthorsTests = new Tests_TwoAuthors();

            twoAuthorsTests.End_TwoAuthors_OneReference();
            twoAuthorsTests.End_TwoAuthors_TwoReferences();
            twoAuthorsTests.End_TwoAuthors_ThreeReferences();

            Tests_ThreeAuthors threeAuthorsTests = new Tests_ThreeAuthors();

            threeAuthorsTests.End_ThreeAuthors_OneReference();
            threeAuthorsTests.End_ThreeAuthors_TwoReferences();
            threeAuthorsTests.End_ThreeAuthors_ThreeReferences();
        }