Ejemplo n.º 1
0
 public void Axb_StringBuilder()
 {
     Assert.AreEqual("axb", StringEx.Axb(new StringBuilder("left"), "x", "right").ToString());
     Assert.AreEqual("right", StringEx.Axb(new StringBuilder(), "x", "right").ToString());
     Assert.AreEqual("left", StringEx.Axb(new StringBuilder("left"), "x", "").ToString());
     Assert.AreEqual("", StringEx.Axb(new StringBuilder(), "x", "").ToString());
 }
Ejemplo n.º 2
0
 public void Axb_Strings()
 {
     Assert.AreEqual("axb", StringEx.Axb("left", "x", "right"));
     Assert.AreEqual("right", StringEx.Axb("", "x", "right"));
     Assert.AreEqual("left", StringEx.Axb("left", "x", ""));
     Assert.AreEqual("", StringEx.Axb("", "x", ""));
 }