public AboutObjects GetObjectInfo() { AboutObjects ao = new AboutObjects(); functions.PullAboutDetails(SessionID(), ref ao); return(ao); }
public static void objectToString() { AboutObjects ob = new AboutObjects(); Console.WriteLine("Object to string"); String expected = ob.GetType().ToString(); Console.WriteLine(ob.ToString() == expected); Assert.AreEqual(ob.ToString(), ob.GetType().ToString()); }
public static void allClassesInheritFromObject() { AboutObjects ob = new AboutObjects(); Console.WriteLine("Classes inherit from objects"); List <Type> ancestors = getAncestors(ob); Console.WriteLine(ancestors[0] == ob.GetType()); Console.WriteLine(ancestors[1] == ob.GetType().BaseType); Assert.AreEqual(ancestors[0], ob.GetType()); Assert.AreEqual(ancestors[1], ob.GetType().BaseType); }