Exemplo n.º 1
0
        public void InspectionFormatter_Formats_ClassCircular()
        {
            var data = new ReferenceTest();

            data.Pointer = data;
            var formatter = new InspectionFormatter(data);

            Assert.AreEqual(@"ReferenceTest {
  Pointer: [Circular] }", formatter.ToString());
        }
Exemplo n.º 2
0
        public void InspectionFormatter_Formats_ClassReference()
        {
            var data = new ReferenceTest {
                Pointer = new ReferenceTest()
            };
            var formatter = new InspectionFormatter(data);

            Assert.AreEqual(@"ReferenceTest {
  Pointer: [ReferenceTest] }", formatter.ToString());
        }