Esempio n. 1
0
        public void DisplayTextContainsKeyAndValue()
        {
            string someKey = "someKey";
            string someValue = "someValue";

            EditableKeyValue keyValue = new EditableKeyValue(someKey, someValue);
            string displayText = keyValue.ToString();

            Assert.IsFalse(-1 == displayText.IndexOf(someKey));
            Assert.IsFalse(-1 == displayText.IndexOf(someValue));
        }
 public void DefaultKeyAndValueAreNull()
 {
     EditableKeyValue keyValue = new EditableKeyValue();
     Assert.IsNull(keyValue.Key);
     Assert.IsNull(keyValue.Value);
 }