示例#1
0
 public void TestCanSetName()
 {
     const string name = "English (US)";
     var locale = new Locale
     {
         Name = name
     };
     Assert.AreEqual(name, locale.Name);
 }
示例#2
0
 public void TestCanSetCode()
 {
     const string code = "en-US";
     var locale = new Locale
     {
         Code = code
     };
     Assert.AreEqual(code, locale.Code);
 }