method
test_no_exist_property
ruby latest stable - Class:
TestWin32OLE
test_no_exist_property()public
No documentation available.
# File ext/win32ole/tests/testWIN32OLE.rb, line 206
def test_no_exist_property
isok = false
begin
@excel.unknown_prop = 1
rescue WIN32OLERuntimeError
isok = true
end
assert(isok)
isok = false
begin
@excel['unknown_prop'] = 2
rescue WIN32OLERuntimeError
isok = true
end
assert(isok)
end