Example #1
0
            public void ReturnsProperPluralizationWhenWordWithFe()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("leaf");
                Assert.AreEqual("leaves", m.TableName);
            }
Example #2
0
            public void ReturnsProperPluralizationWhenWordContainsFe()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("effect");
                Assert.AreEqual("effects", m.TableName);
            }
Example #3
0
            public void ReturnsProperPluralizationWhenWordEndsWithS()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("mess");
                Assert.AreEqual("messes", m.TableName);
            }
Example #4
0
            public void ReturnsProperPluralization()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("robot");
                Assert.AreEqual("robots", m.TableName);
            }
Example #5
0
            public void ReturnsProperPluralizationWhenWordIsUnpluralizable()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("equipment");
                Assert.AreEqual("equipment", m.TableName);
            }
            public void ReturnsProperPluralizationWhenWordContainsF()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("profile");
                Assert.Equal("profiles", m.TableName);
            }
            public void ReturnsProperPluralizationWhenWordEndsWithY()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("penny");
                Assert.Equal("pennies", m.TableName);
            }