public void ScriptBlockIsImmutable(InlineScriptSource[] oldInlineScriptSources, InlineScriptSource newInlineScriptSource) { var old = new ScriptBlock(oldInlineScriptSources); var @new = old.AppendScript(newInlineScriptSource); Assert.NotSame(@new, old); }
public ScriptBlock ScriptBlockTest(ScriptBlock block) { return block.AppendScript(new InlineScriptSource(ScriptBlockTestScriptName, ScriptBlockTestScript)); }