Esempio n. 1
0
        public void TestBuildMood()
        {
            var mood = new Matrix.Xmpp.Mood.Mood
            {
                UserMood = Matrix.Xmpp.Mood.Moods.Annoyed,
                MoodText = "curse my nurse!"
            };

            mood.ShouldBe(Resource.Get("Xmpp.Mood.mood1.xml"));
        }
Esempio n. 2
0
        public void TestBuildMood2()
        {
            var mood = new Matrix.Xmpp.Mood.Mood
            {
                UserMood = Matrix.Xmpp.Mood.Moods.InAwe,
            };

            Assert.Equal(mood.UserMood == Matrix.Xmpp.Mood.Moods.InAwe, true);
            Assert.Equal(mood.UserMood == Matrix.Xmpp.Mood.Moods.Hungry, false);
            Assert.Equal(mood.UserMood == Matrix.Xmpp.Mood.Moods.InLove, false);

            mood.ShouldBe(Resource.Get("Xmpp.Mood.mood2.xml"));
        }