public void WhenSimplifyingAllCoreLib_ThenAddsUsingForGenericsAndNonGenericEnumerable() { var codegen = new CodeGeneration(); codegen.AddTypes(typeof(string).Assembly); codegen.AddType(typeof(IComparable<string>)); codegen.EndInit(); Assert.Equal("IComparable<String>", codegen.GetTypeName(typeof(IComparable<string>))); Assert.Equal("IComparable", codegen.GetTypeName(typeof(IComparable))); Assert.True(codegen.SafeImports.Contains(typeof(IComparable<>).Namespace)); }