public void TestAppendToStringToQString() { var old = new QStringRef(_testString); var app = "added"; var appended = old.AppendTo(app); var q = appended.ToString(); var exp = this._testString + app; Assert.AreEqual(exp, q); }
public void TestAppendToStringToQString() { string app; QStringRef appended; using (var old = new QStringRef(this.testString)) { app = "added"; appended = old.AppendTo(app); } var q = appended.String; var exp = app + this.testString; Assert.AreEqual(exp, q); }