1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
public class TestArrayChars
{
// [Fact]
// public void char_array_1()
// {
// var result = Interop.char_array_1();
// Assert.Equal("Hello, World!", result.str);
// }
//
// [Fact]
// public void char_array_2()
// {
// var result = Interop.char_array_2(new CharArray
// {
// str = "Hello",
// str_2 = "World"
// });
// Assert.Equal("Hello", result.str);
// Assert.Equal("World", result.str_2);
// }
//
// [Fact]
// public void char_array_2_throws()
// {
// Assert.Throws<System.InvalidOperationException>(() => Interop.char_array_2(new CharArray
// {
// str = "Hello, World! Hello, World! Hello, World! Hello, World!"
// }));
// }
//
// [Fact]
// public void char_array_3()
// {
// var arr = new CharArray
// {
// str = "Hello",
// str_2 = "World"
// };
// var result = Interop.char_array_3(ref arr);
// Assert.Equal((byte)'H', result);
// }
}