public void FindNoTypeByAttribute() { var assemblyName = "test1.dll"; GenerateAssembly(plainType, assemblyName); FileAssert.Exists(assemblyName); Assert.IsFalse(TypeFinder.ByAttributeInDirectory <ObsoleteAttribute>(".", assemblyName).Any()); }
public void FindTypeByAttribute() { var assemblyName = "test2.dll"; GenerateAssembly(typeWithAttribute, assemblyName); FileAssert.Exists(assemblyName); var types = TypeFinder.ByAttributeInDirectory <ObsoleteAttribute>(".", assemblyName); Assert.IsTrue(types.Any()); }