/// <summary> /// testing to see if i can get the keys to objects other stuff. /// </summary> static void MakeBatman() { TechBat batman = new TechBat("Batman"); foreach (PropertyInfo prop in batman.GetType().GetProperties()) { Console.WriteLine(prop.GetValue(batman).ToString() + " : " + ":" + prop.GetGetMethod().ToString()); } Console.WriteLine(); }
public void TestSleepsForInWildBats() { TechBat batman = new TechBat("BATMAN"); Assert.Equal(6, batman.SleepForHours); }
public void TestForTypeBat() { TechBat batman = new TechBat("BATMAN"); Assert.True(batman is Bats); }
public void TestIFlyInterface() { TechBat batman = new TechBat("BATMAN"); Assert.Equal("I go over Gothem to get to The bat cave", batman.FlyingTo("The bat cave")); }
public void CanMakeBatman() { TechBat batman = new TechBat("BATMAN"); Assert.Equal("BATMAN", batman.Name); }