comparison Lang/Mock/MockTranslatable.cs @ 14:15cf2fe2a627

Re #30: Improve Translations API * Add translations tests and test data * Add reset method to translations * Fix translations where API documentation (contract) didn't match behaviour
author IBBoard <dev@ibboard.co.uk>
date Tue, 06 Apr 2010 14:40:35 +0000
parents
children 31fdc90f3556
comparison
equal deleted inserted replaced
13:f6fd30d3b817 14:15cf2fe2a627
1 // This file (MockTranslatable.cs) is a part of the IBBoard.Tests project and is copyright 2010 IBBoard
2 //
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
4
5 using System;
6
7 namespace IBBoard.Lang.Mock
8 {
9 public class MockTranslatable : ITranslatable
10 {
11 private string name;
12 private string text;
13
14 public MockTranslatable(string mockName)
15 {
16 name = mockName;
17 }
18
19 public string Name
20 {
21 get
22 {
23 return name;
24 }
25 set
26 {
27 name = value;
28 }
29 }
30
31 public string Text
32 {
33 get
34 {
35 return text;
36 }
37 set
38 {
39 text = value;
40 }
41 }
42 }
43 }