public void ToString_should_output_two_word() { var sut = new WordModel(345); sut = sut.Add("foo").Add("bar"); sut.ToString().Should().Be("foobar"); }
public Word(WordModel wordModel) { var lexems = wordModel.Lexems; if (lexems.Count != 0) { InitialForm = lexems.First().Lexeme; GramPart = lexems.First().GramPart; } Text = wordModel.ToString(); }
public void ToString_should_output_number() { var sut = new WordModel(42); sut.ToString().Should().Be("42"); }