2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / mbas / Test / tests / FunctionArgu_ByValueC.vb
1 '=============================================================================================\r
2 'Name:Manish Kumar Sinha \r
3 'Email Address: manishkumarsinha@sify.com\r
4 'Test Case Name: Argument passing by Value:\r
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\r
6 '=============================================================================================\r
7 \r
8 Imports System\r
9 Module APV1_1_0\r
10         Function F(p As String) As String\r
11         p = "Sinha"\r
12         return p\r
13    End Function\r
14    \r
15    Sub Main()\r
16       Dim a As String = "Manish"\r
17         Dim b as String = ""\r
18       b = F(a)\r
19         if a=b\r
20                 Throw New System.Exception("#A1, Unexcepted behaviour in string of APV1_1_0")\r
21         end if\r
22    End Sub \r
23 End Module\r
24 '===========================================================================================