public void TestRubyFullUpperCase() { RubyNamingConvention namingConvention = new RubyNamingConvention(); Assert.AreEqual("id", namingConvention.GetMemberName("ID")); Assert.AreEqual("hellocruelworld", namingConvention.GetMemberName("HELLOCRUELWORLD")); }
public void TestRubyWithTurkishCulture() { using (CultureHelper.SetCulture("tr-TR")) { RubyNamingConvention namingConvention = new RubyNamingConvention(); // in Turkish ID.ToLower() returns a localized i, and this fails Assert.AreEqual("id", namingConvention.GetMemberName("ID")); } }
public void TestRubyWithTurkishCulture() { System.Threading.Thread.CurrentThread.CurrentCulture = System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("tr-TR"); RubyNamingConvention namingConvention = new RubyNamingConvention(); // in Turkish ID.ToLower() returns a localized i, and this fails Assert.AreEqual("id", namingConvention.GetMemberName("ID")); }
public void TestRubyMoreComplexName() { RubyNamingConvention namingConvention = new RubyNamingConvention(); Assert.AreEqual("hello_cruel_world", namingConvention.GetMemberName("HelloCruelWorld")); }
public void TestRubySimpleName() { RubyNamingConvention namingConvention = new RubyNamingConvention(); Assert.AreEqual("test", namingConvention.GetMemberName("Test")); }
public void TestRubyComplexName() { var namingConvention = new RubyNamingConvention(); Assert.AreEqual("hello_world", namingConvention.GetMemberName("HelloWorld")); }