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(); }
public void Tests_References_With_StartingText() { //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 si my. New starting text " + p.GetValue(null); 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(); }