public void AddRangeIncrementsScriptCountWhenAddingAScript() { ScriptCollection scripts = Script.ParseScripts("/* Test */"); Assert.AreEqual(1, scripts.Count); scripts.AddRange(new[] { new Script("test"), new Script("test2") }); Assert.AreEqual(3, scripts.Count); }
public void AddRangeWithNullArgumentThrowsArgumentNullException() { ScriptCollection scripts = Script.ParseScripts("/* Test */"); UnitTestHelper.AssertThrowsArgumentNullException(() => scripts.AddRange(null)); }