示例#1
0
        public void ToStringTest()
        {
            string    str       = string.Format("{0} - [{1}]", WORD, SentimentType.POSITIVE.ToString());
            Sentiment sentiment = new Sentiment(SentimentType.POSITIVE, WORD);

            Assert.AreEqual(sentiment.ToString(), str);
        }
        public void TryingToString()
        {
            Sentiment sentiment = new Sentiment()
            {
                SentimientText = "Me gusta",
                SentimentType  = Sentiment.TypeSentiment.Positive
            };

            Assert.AreEqual("Me gusta", sentiment.ToString());
        }