Welcome to mirror list, hosted at ThFree Co, Russian Federation.

BasicFSharpFormatterTests.cs « FSharp « mdoc.Test « mdoc - github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 12e40320bb09e7a0b46b991b5e3f2b1ed96f7fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using Mono.Cecil;
using Mono.Documentation.Updater;
using System;

namespace mdoc.Test
{
    public abstract class BasicFSharpFormatterTests<T> : BasicFormatterTests<T> where T : MemberFormatter
    {
        protected override TypeDefinition GetType(Type type)
        {
            var moduleName = type.Module.FullyQualifiedName;

            // Can't use base.GetType, F# assemblies use '/' instead of '+'
            var tref = GetType(moduleName, type.FullName.Replace("+", "/"));
            return tref;
        }
    }
}