예제 #1
0
		public void CorrectlyReplacesToken()
		{
			const string script = "X ||Token|| X";

			ITokenReplacer replacer = new TokenReplacer {Text = script};

			replacer.Replace("Token", "TokenValue");
			Assert.AreEqual("X TokenValue X", replacer.Text);
		}
예제 #2
0
		public void ThrowsExceptionIfTextNotSetFirst()
		{
			ITokenReplacer replacer = new TokenReplacer();
			replacer.Replace("Token", "TokenValue");
		}