Flowdock
method

test_setproperty_bracket

Importance_0
v1_8_7_72 - Show latest stable - 0 notes - Class: TestWin32OLE
test_setproperty_bracket() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/win32ole/tests/testWIN32OLE.rb, line 137
  def test_setproperty_bracket
    book = @excel.workbooks.add
    sheet = book.worksheets(1)
    begin
      sheet.range("A1")['Value'] = 10
      assert_equal(10, sheet.range("A1").value)
      sheet['Cells', 1, 2] = 10
      assert_equal(10, sheet.range("B1").value)
      assert_equal(10, sheet['Cells', 1, 2].value)
    ensure
      book.saved = true
    end
  end
Register or log in to add new notes.