**** Merged from MCS ****
[mono-project.git] / mcs / mbas / Test / tests / Arguments_ByValueC.vb
blob1707e9c5803473027546cf66b0e0c61ebe17eb77
1 '=============================================================================================
2 'Name:Manish Kumar Sinha
3 'Email Address: manishkumarsinha@sify.com
4 'Test Case Name: Argument passing by Value:
5 'APV-1.1.0: If variable elements is of value type, i.e. it contains only a value then procedure ' cannot change the variable or any of its members
6 '=============================================================================================
8 Imports System
9 Module APV1_1_0
10 Sub F(p As String)
11 p = "Sinha"
12 End Sub
14 Sub Main()
15 Dim a As String = "Manish"
16 F(a)
17 if a<>"Manish"
18 Throw New System.Exception("#A1, Unexcepted behaviour in string of APV1_1_0")
19 end if
20 End Sub
21 End Module
22 '=============================================================================================