Example #1
0
        public void InspectionFormatter_Formats_ExtendedDictionaryEmpty()
        {
            var dictionary = new ExtendedDictionaryTest();
            var formatter  = new InspectionFormatter(dictionary);

            Assert.AreEqual(@"ExtendedDictionaryTest [Dictionary] {}", formatter.ToString());
        }
Example #2
0
        public void InspectionFormatter_Formats_ExtendedDictionaryPopulated()
        {
            var dictionary = new ExtendedDictionaryTest {
                { 1, 4 }, { 6, 12 }
            };
            var formatter = new InspectionFormatter(dictionary);

            Assert.AreEqual(@"ExtendedDictionaryTest [Dictionary] {
  1 => 4,
  6 => 12 }", formatter.ToString());
        }