Ejemplo n.º 1
0
        public void UpdateBlabTest()
        {
            User   testUser = new User("*****@*****.**");
            string message1 = "You are all free... if you weren't already";
            string message2 = "Better clench up Legolas";
            Blab   blab     = new Blab(message1, testUser);

            _harness.Add(blab);
            blab.Message = message2;
            _harness.Update(blab);

            var expected = _harness.GetByUserMessage(blab);
            var actual   = _harness.GetByUserMessage(blab);

            Assert.AreEqual(expected.Message, actual.Message);
        }