Tests.ExplorerViewModelTest.TestSetPropertyValue C# (CSharp) Method

TestSetPropertyValue() private method

private TestSetPropertyValue ( ) : void
return void
        public void TestSetPropertyValue()
        {
            var model = new ViewModel(_mingleHost, MINGLE_INTEGRATION_USER, MINGLE_INTEGRATION_PASSWORD);
            model.SelectProject("test");
            var card = model.GetOneCard(120);
            var p = card.Properties;
            card.SetPropertyOrAttributValue("description", "the quick brown fox jumped over the wall");
            card.SetPropertyOrAttributValue("Owner", "mark");
            card.Update();
            card = model.GetOneCard(120);
            Assert.AreEqual("the quick brown fox jumped over the wall", card.Description);
            Assert.AreEqual("mark", card.Properties["Owner"].Value);
            // Reset the data
            card.SetPropertyOrAttributValue("description", string.Empty);
            card.SetPropertyOrAttributValue("Owner", string.Empty);
            card.Update();
        }