public IDisposable ScopeOMnG() { IDisposable obj = ObjectExtensions.ConfigScope(ObjectExtensionsConfiguration); IDisposable tpy = TypeExtensions.ConfigScope(TypeExtensionsConfiguration); return(new CustomDisposable(() => { obj?.Dispose(); tpy?.Dispose(); })); }
public void GetLablelsCompress() { using (TypeExtensions.ConfigScope(new TypeExtensionsConfiguration.CompressConfiguration())) { List <string> tmp = TypeExtensions.GetLabels <ClassC>().ToList(); tmp.ForEach(p => Assert.True(p.Length <= 32)); Assert.True(tmp.GetTypesFromLabels().GetInstanceOfMostSpecific() is ClassC); } }