Ejemplo n.º 1
0
            public void ReturnsProperPluralizationWhenWordContainsFe()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("effect");
                Assert.AreEqual("effects", m.TableName);
            }
Ejemplo n.º 2
0
            public void ReturnsProperPluralizationWhenWordEndsWithS()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("mess");
                Assert.AreEqual("messes", m.TableName);
            }
Ejemplo n.º 3
0
            public void ReturnsProperPluralizationWhenWordWithFe()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("leaf");
                Assert.AreEqual("leaves", m.TableName);
            }
Ejemplo n.º 4
0
            public void ReturnsProperPluralizationWhenWordIsUnpluralizable()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("equipment");
                Assert.AreEqual("equipment", m.TableName);
            }
Ejemplo n.º 5
0
            public void ReturnsProperPluralization()
            {
                PluralizedAutoClassMapper <Foo> m = GetMapper <Foo>();

                m.Table("robot");
                Assert.AreEqual("robots", 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);
            }
        public void ShouldNotPluralizeIfFoundedInExclusions()
        {
            var mapper = new PluralizedAutoClassMapper <Equipment>();

            Assert.Equal("Equipment", mapper.TableName);
        }
        public void ReplaceWhenRegexWasExactMatched()
        {
            var mapper = new PluralizedAutoClassMapper <Person>();

            Assert.Equal("People", mapper.TableName);
        }
        public void ReplaceWhenRegexWasMatched()
        {
            var mapper = new PluralizedAutoClassMapper <TestClass>();

            Assert.Equal("TestClasses", mapper.TableName);
        }