public void testRepeat()
 {
     string str = "Mares eat oats.Mares eat oats.Mares eat oats.Mares eat oats.Mares eat oats.Mares eat oats.";
     StringTheory theory = new StringTheory("Mares eat oats.");
     theory.Repeat(5);
     Assert.True(str.Equals(theory.ToString()), "Repeat 5 times doesn't match.");
     theory = new StringTheory("Mares eat oats.");
     theory.Repeat(0);
     Assert.True("Mares eat oats.".Equals(theory.ToString()), "Repeat 0 times doesn't match.");
     theory.Repeat(-1);
     Assert.True("Mares eat oats.".Equals(theory.ToString()), "Repeat -1 times doesn't match.");
     theory.Repeat(3);
     Assert.True("Mares eat oats.Mares eat oats.Mares eat oats.Mares eat oats.".Equals(theory.ToString()), "Repeat 3 times doesn't match.");
 }