PageRenderTime 73ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/IronPython_Main/Languages/Ruby/Tests/Interop/net/bcl/array/modification_spec.rb

#
Ruby | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 836a86b0f4dc576634fd761118135dbd MD5 | raw file
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, CPL-1.0, CC-BY-SA-3.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1, Apache-2.0
  1. require File.dirname(__FILE__) + '/../../spec_helper'
  2. describe "Modifying .NET arrays" do
  3. before :each do
  4. @array = [10].to_clr_array(Fixnum)
  5. end
  6. it "doesn't dynamicly resize" do
  7. lambda {@array[10] = 1}.should raise_error(IndexError)
  8. end
  9. end