Esempio n. 1
0
        public void ToString_should_output_two_word()
        {
            var sut = new WordModel(345);

            sut = sut.Add("foo").Add("bar");

            sut.ToString().Should().Be("foobar");
        }
Esempio n. 2
0
        public Word(WordModel wordModel)
        {
            var lexems = wordModel.Lexems;

            if (lexems.Count != 0)
            {
                InitialForm = lexems.First().Lexeme;
                GramPart    = lexems.First().GramPart;
            }
            Text = wordModel.ToString();
        }
Esempio n. 3
0
        public void ToString_should_output_number()
        {
            var sut = new WordModel(42);

            sut.ToString().Should().Be("42");
        }