Merge pull request #5714 from alexischr/update_bockbuild
[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 using System;
13 using System.IO;
14 using System.Text;
15
16 using NUnit.Framework;
17
18 namespace MonoTests.System.Text
19 {
20         internal class MyEncoding : Encoding
21         {
22                 public MyEncoding ()
23                 {
24                 }
25
26                 public MyEncoding (int codepage)
27                         : base (codepage)
28                 {
29                 }
30
31                 public override int GetByteCount (char [] chars, int index, int count)
32                 {
33                         return 0;
34                 }
35
36                 public override int GetBytes (char [] chars, int charIndex, int charCount, byte [] bytes, int byteIndex)
37                 {
38                         return 0;
39                 }
40
41                 public override int GetCharCount (byte [] bytes, int index, int count)
42                 {
43                         return 0;
44                 }
45
46                 public override int GetChars (byte [] bytes, int byteIndex, int byteCount, char [] chars, int charIndex)
47                 {
48                         return 0;
49                 }
50
51                 public override int GetMaxByteCount (int length)
52                 {
53                         return 0;
54                 }
55
56                 public override int GetMaxCharCount (int length)
57                 {
58                         return 0;
59                 }
60         }
61 }