New test.
[mono.git] / mcs / class / corlib / Test / System.Text / TestEncoding.cs
1 //
2 // TestEncoding.cs
3 //
4 // Author:
5 //      Atsushi Enomoto  <atsushi@ximian.com>
6 //
7 // Copyright (C) 2005 Novell, Inc.  http://www.novell.com
8 //
9 // Used for testing custom encoding.
10 //
11
12 #if NET_2_0
13
14 using System;
15 using System.IO;
16 using System.Text;
17 using NUnit.Framework;
18
19 namespace MonoTests.System.Text
20 {
21         internal class MyEncoding : Encoding
22         {
23                 public MyEncoding ()
24                 {
25                 }
26
27                 public MyEncoding (int codepage)
28                         : base (codepage)
29                 {
30                 }
31
32                 public override int GetByteCount (char [] chars, int index, int count)
33                 {
34                         return 0;
35                 }
36
37                 public override int GetBytes (char [] chars, int charIndex, int charCount, byte [] bytes, int byteIndex)
38                 {
39                         return 0;
40                 }
41
42                 public override int GetCharCount (byte [] bytes, int index, int count)
43                 {
44                         return 0;
45                 }
46
47                 public override int GetChars (byte [] bytes, int byteIndex, int byteCount, char [] chars, int charIndex)
48                 {
49                         return 0;
50                 }
51
52                 public override int GetMaxByteCount (int length)
53                 {
54                         return 0;
55                 }
56
57                 public override int GetMaxCharCount (int length)
58                 {
59                         return 0;
60                 }
61         }
62 }
63
64 #endif
65