diff options
author | Mikhail Melnikov <mikhail_melnikov@epam.com> | 2018-05-15 18:45:22 +0300 |
---|---|---|
committer | Joel Martinez <joelmartinez@gmail.com> | 2018-05-29 23:54:41 +0300 |
commit | 047f5c951965c0a131d581c58eb2af0ba341c48d (patch) | |
tree | 30706e3d0b720d9c403fa8133eaebd861df3f3ed /mdoc/mdoc.Test/BasicFormatterTests.cs | |
parent | f92ac8bcf7f4c0f7c1f12c3d23c1e5a829d7041d (diff) |
Fixed missing API for VisualC reflected binary
For some C++ classes, generic parameters doesn't exist before `Resolve` is called. Added `type = type.Resolve();` for types with IsRequiredModifier == true.
Closes #200
Diffstat (limited to 'mdoc/mdoc.Test/BasicFormatterTests.cs')
-rw-r--r-- | mdoc/mdoc.Test/BasicFormatterTests.cs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/mdoc/mdoc.Test/BasicFormatterTests.cs b/mdoc/mdoc.Test/BasicFormatterTests.cs index d8685222..f754d222 100644 --- a/mdoc/mdoc.Test/BasicFormatterTests.cs +++ b/mdoc/mdoc.Test/BasicFormatterTests.cs @@ -10,20 +10,6 @@ namespace mdoc.Test { protected abstract T formatter { get; } - protected MethodDefinition GetMethod(Type type, Func<MethodDefinition, bool> query) - { - return GetMethod(GetType(type), query); - } - - protected MethodDefinition GetMethod(TypeDefinition testclass, Func<MethodDefinition, bool> query) - { - var methods = testclass.Methods; - var member = methods.FirstOrDefault(query)?.Resolve(); - if (member == null) - throw new Exception("Did not find the member in the test class"); - return member; - } - protected MethodDefinition GetProperty(TypeDefinition testclass, Func<MethodDefinition, bool> query) { var methods = testclass.Methods; |