public void FindBarType() { AssemblyUtil util = new AssemblyUtil(); Type barType = typeof(Bar); Type actualType = util.GetTypes(barType.Assembly, typeof(FooAttribute))[0]; Assert.AreEqual(barType, actualType); }
public void FindFooAttribute() { AssemblyUtil util = new AssemblyUtil(); Assert.AreEqual(util.GetClassCount(typeof(Bar).Assembly, typeof(FooAttribute)),1); }