repo.or.cz
/
mono.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-04-19 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git]
/
mono
/
tests
/
string.cs
blob
f2e899bda934bf70d82722a530f47da5b8f1bec4
1
using
System
;
2
3
public class
TestString
{
4
5
public static int
Main
() {
6
string
a
=
"ddd"
;
7
string
b
=
"ddd"
;
8
string
c
=
"ddda"
;
9
if
(
a
!=
b
)
10
return
1
;
11
if
(
c
!=
String
.
Concat
(
b
,
"a"
))
12
return
2
;
13
if
(!
System
.
Object
.
ReferenceEquals
(
a
,
b
))
14
return
3
;
15
if
(
System
.
Object
.
ReferenceEquals
(
c
,
String
.
Concat
(
b
,
"a"
)))
16
return
4
;
17
return
0
;
18
}
19
}