PageRenderTime 46ms CodeModel.GetById 42ms app.highlight 2ms RepoModel.GetById 1ms 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
 1require File.dirname(__FILE__) + '/../../spec_helper'
 2
 3describe "Modifying .NET arrays" do
 4  before :each do
 5    @array = [10].to_clr_array(Fixnum)
 6  end
 7
 8  it "doesn't dynamicly resize" do
 9    lambda {@array[10] = 1}.should raise_error(IndexError)
10  end
11end