public void TestKebabCase() { Assert.True(NamingConvention.GetKebabCase("FOO") == "foo"); Assert.True(NamingConvention.GetKebabCase("Bar") == "bar"); Assert.True(NamingConvention.GetKebabCase("zaz") == "zaz"); Assert.True(NamingConvention.GetKebabCase("FooBarZaz") == "foo-bar-zaz"); Assert.True(NamingConvention.GetKebabCase("foo bar zaz") == "foo-bar-zaz"); Assert.True(NamingConvention.GetKebabCase("foo-bar-zaz") == "foo-bar-zaz"); Assert.True(NamingConvention.GetKebabCase("foo_bar_zaz") == "foo-bar-zaz"); }
public void CheckKebabCase() { Assert.True("foo" == NamingConvention.GetKebabCase("FOO")); Assert.True("bar" == NamingConvention.GetKebabCase("Bar")); Assert.True("zaz" == NamingConvention.GetKebabCase("zaz")); Assert.True("foo-bar-zaz" == NamingConvention.GetKebabCase("FooBarZaz")); Assert.True("foo-bar-zaz" == NamingConvention.GetKebabCase("foo bar zaz")); Assert.True("foo-bar-zaz" == NamingConvention.GetKebabCase("foo-bar-zaz")); Assert.True("foo-bar-zaz" == NamingConvention.GetKebabCase("foo_bar_zaz")); Assert.True("foo-bar-zaz" == NamingConvention.GetKebabCase("foo.bar.zaz")); }