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

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mdoc/Test
AgeCommit message (Collapse)Author
2018-05-30Fix check of ignored membersMikhail Melnikov
In `DocUtils.IsIgnored`, check if member is generated by a compiler before checking of prefixes Closes #199
2018-05-26Attributes now receive `FrameworkAlternate`.Joel Martinez
This is for both types, members, and assembly attributes. Resolves #76
2018-05-03Fixed unit test that failed on mac.Joel Martinez
Unit test was using FSharpMap, but the list of interfaces being implemented were different on my local install. So to avoid depending on the locally installed SDK, just added a test class that will be consistent to test against.
2018-04-27check for embedded type was added - presence of two attributes mentioned in ↵katsiaryna_bialiatka
the ticket is checked add integration test Closes #212
2018-04-26mdoc: C# Finalizer Signatures for Generic Types incorrectGRODNO\Anton_Sokolovskii
Edited signature for destructor in a generic classes Edited integration test Added unit test Closes #184
2018-03-30mdoc: default values now filtered for special chars.Joel Martinez
Resolves #220
2018-03-28fx index files now reads correct namespace for nested types.Joel Martinez
Closes #218
2018-03-20mdoc: parameters and member signatures now use FrameworkAlternate when differentJoel Martinez
Resolves #116
2018-01-12mdoc: some small test changes related to c++ signatures.Joel Martinez
For #132
2018-01-12[mdoc] Support for C++ signatureskatsiaryna_bialiatka
Closes #132
2017-12-22mdoc: Support for Javascript signaturesMikhail Melnikov
Added Javascript usage formatter Added unit tests Added `check-monodocer-javascript` integration test `MemberSignature` and `TypsSignature` can contain just `Usage` attribute now, fixed XSD schema
2017-12-22mdoc: AttachedProperty is no longer generated if a 'real' property exists.Joel Martinez
This is due to the fact that the DocID would be duplicated. Closes #193
2017-12-16mdoc: Adds support for attached events and properties to the vb formatter.Joel Martinez
Closes #190
2017-12-12[mdoc] fix breaks with a key not found exception under when a class ↵Mikhail Melnikov
implements a destructor Removed `!isExplicitlyImplemented` when we check if there is a fingerprint among implemented interfaces members: ``` if (!allImplementedMembers.ContainsKey(fingerprint)) { ClearElement(root, "Implements"); return; } ``` Now explicitly implemented members have signatures in allImplementedMembers too. Added a destructor method to Class6 in the integration test `check-monodocer-members-implementation` Closes #158
2017-12-11[mdoc] Fixed StackOverflow in F# and exception in members implementations ↵Mikhail Melnikov
generation StackOverflow in F# was caused by generic types constrained recursively by themselves (`'T :> seq<'T>`) Added `TestConstraints_2_2` unit test For members implementations generation, we shouldn't count on order of type generic arguments because they can be passed to interface reordered. Slightly remade generation of fingerprints. Extended `check-monodocer-members-implementation` integration test with `IScrollable` and `ScrollableBase` classes
2017-12-07[mdoc] Implementation details are now shown on membersMikhail Melnikov
Based on the pull request #170 Node <Implements> with subnodes <InterfaceMember> show which member(s) of interface(s) is(are) implemented <Implements> and <InterfaceMember> are added to monodoc-ecma.xsd Added the integration test `check-monodocer-members-implementation` Closes #158
2017-12-04mdoc: fixed breaks in frameworks mode #175Mikhail Melnikov
On the first phase of attached event check, we had to check name, not type Added integration test on this case Closes #174
2017-11-30mdoc: Support for attached events and attached propertiesMikhail Melnikov
Added AttachedEventReference, AttachedEventDefinition, AttachedPropertyReference, AttachedPropertyDefinition (equivalents of Cecil entities) They are processed as any other Cecil entities Added check-monodocer-attached-entities integration test Added DocId support for attached events and attached properties Closes #63
2017-11-30mdoc: Support for F# signaturesMikhail Melnikov
Added F# signatures and usage formatter Added unit and integration tests Closes #108
2017-11-21mdoc: Support NuGet information in the frameworks.xmlGRODNO\Anton_Sokolovskii
Add two new parameters to constructor AssemblySet Add properties to FrameworkEntry Add integration test Closes #81
2017-11-17mdoc: C# formatter is not outputting "protected internal"GRODNO\Anton_Sokolovskii
Corrected VB and C# formatters Edited integration tests Closes #137
2017-11-03mdoc: minor test updates to reflect recent featuresJoel Martinez
2017-11-02mdoc: Reflected enums don't get their numeric value in the XMLGRODNO\Anton_Sokolovskii
Removed line from method `GetFieldConstValue` that forbade obtaining the value for `enum` Edited integration tests Closes #28
2017-11-01mdoc: C# interface event signature no longer prints modifier.Joel Martinez
2017-11-01mdoc: Support VB.NET signatures enhancementMikhail Melnikov
Added VBFullMemberFormatter and VBMemberFormatter. Support for -lang CLI parameter (vb.net, docid are available now). IsSupported virtual methods for TypeReference and MemberReference in MemberFormatter. If they return false, sygnature is not added to XML file. Closes #131
2017-11-01mdoc: updates for WSLJoel Martinez
2017-10-27mdoc: Insert default thread safety information.GRODNO\Anton_Sokolovskii
Added sample attribute "supported" and complex "memberScope" with 3 values. Updated file MyClass.xml for integration test "check-monodocer-membergroup" Closes #113
2017-10-27mdoc: EII events are now documented.Joel Martinez
Closes #106
2017-10-26mdoc: Preserving remarks created post-factum on importGRODNO\Anton_Sokolovskii
Added attribute "overwrite" for the following elements: remarks, summary, value, returns, param, typeparam, altmember, exception, permission Closes #97
2017-10-25mdoc: Analytics modeMikhail Melnikov
Added -statistics CLI argument with required parameter <path>. Statistics module counts how many namespaces/types/members are added/removed/total. If <path> parameter just points to a folder the default filename "statistics.txt" is appended. If the path can't be resolved a warning message is printed ("mdoc: Unable to save statistics file: Could not find a part of the path 'Z:\'.") Unit tests for new classes are added; "check-monodocer-fx-statistics-remove" integration test is added, 2 other tests check statistics result file as well. Closes #100
2017-09-26mdoc: IL signatures now reflect ref, in, and out modifiers.Joel Martinez
Closes #118
2017-09-22mdoc: C# signatures now include `params` when appropriate.Joel Martinez
Closes #78
2017-09-02mdoc: update now using ILAsm signature for tracking.Joel Martinez
Due to some recent changes to the C# signature (operators), it was not properly connecting the member to the existing node, causing a duplicate entry in the XML. By using ILASM (which is less likely to change), we work around this problem. Closes #107.
2017-08-01mdoc: C# operator signatures are now generated correctly.Joel Martinez
Previously, mdoc simply used the compiler-generated method names for operators, such as `op_Multiply`, instead of `operator *`. This releases fixes that for all unary, binary, comparison, and conversion operators. Closes #82
2017-06-30Documentation importing is now supported in Frameworks mode.Joel Martinez
You can now add a new element to frameworks.xml, `/Frameworks/Framework/import`, which is a path to the import documentation file (generated via the compiler's `/doc` parameter). An example test case was added in the make target, `check-monodocer-import-fx`. Closes #43
2017-06-01mdoc: now supports 'see href'.Joel Martinez
Resolves #62
2017-04-21Updates for Mono 5.0Joel Martinez
Now using MSBuild. Updated some test data to reflect newly thrown exceptions. Updated to a newer version of NUnit.
2017-03-15mdoc: Resolves issue in fx mode with overridden members.Joel Martinez
When a type overrides a member in one framework, but does not in another framework processed after the first, the Member node was being removed, even though the entry remained in teh first framework index file. This Resolves #39
2017-03-08mdoc: Support for alternate inheritance chains in frameworks.Joel Martinez
If a framework has a different inheritance chain, another `Base/BaseTypeName` element will be added with a `FrameworkAlternate` attribute. Resolves #16
2017-03-07mdoc: special characters in attributes are now filtered.Joel Martinez
Fixes #32, which was an issue with the ascii null character. It caused the resulting XML to be malformed.
2017-03-07mdoc: Added MemberGroup as valid elementJoel Martinez
A MemberGroup can be intermixed amongst the other Member nodes. It will be sorted to be in front of the other similarly named Members. It must contain a MemberName attribute, and can have: Docs, and AssemblyInfo nodes. Resolves #35
2017-03-03Frameworks Mode for Update Commandpreview-5.0.0.6Joel Martinez
mdoc now supports documenting multiple frameworks. You can use this new functionality by passing the path to a configuration file in the `-frameworks` (or `-fx` for short) parameter. ``` mdoc update -o path/to/documentationXML -frameworks path/to/frameworks.xml ``` This command will result in one XML file per framework in the `path/to/documentationXML/FrameworksIndex` folder. ``` xml <?xml version="1.0" encoding="utf-8"?> <Framework Name="Two"> <Namespace Name="MyFramework.MyOtherNamespace"> <Type Name="MyFramework.MyOtherNamespace.MyOtherClass" Id="T:MyFramework.MyOtherNamespace.MyOtherClass"> <Member Id="M:MyFramework.MyOtherNamespace.MyOtherClass.#ctor" /> ... </Type> </Namespace> </Framework> ``` Configuration File This is a sample configuration file: ``` xml <?xml version="1.0" encoding="utf-8"?> <Frameworks> <Framework Name="One" Source="One"> <assemblySearchPath>dependencies/One</assemblySearchPath> </Framework> <Framework Name="Two" Source="Two"> <assemblySearchPath>dependencies/Two</assemblySearchPath> </Framework> </Frameworks> ``` Note that the `assemblySearchPath` is meant to house dependent assemblies that mono.cecil must be able to resolve. You can have as many as you need for each framework if you happen to have them separated into multiple folders. Also the `-L` parameter applies globally to every framework. Frameworks Config Bootstrap To simplify the tedium of creating the configuration file, a simple command was added that will use the folder structure to create a basic configuration file: ``` csharp mdoc fx-bootstrap path/to/frameworks ``` This will create a file at `path/to/frameworks/frameworks.xml`, using the folders in `path/to/frameworks` as the names/paths DocId Signatures You can now pass a flag to add a `DocId` signature to every `Type` and `Member` node. ``` mdoc update -o out/path some.dll -use-docid ``` _please note_: framework index files will _always_ use the DocId as their identifiers. Frameworks Index files Grouped by Namespace Framework index files now have types grouped by namespace. Example: ``` xml <?xml version="1.0" encoding="utf-8"?> <Framework Name="Two"> <Namespace Name="MyFramework.MyOtherNamespace"> <Type Name="MyFramework.MyOtherNamespace.MyOtherClass" Id="T:MyFramework.MyOtherNamespace.MyOtherClass"> <Member Id="M:MyFramework.MyOtherNamespace.MyOtherClass.#ctor" /> ... </Type> </Namespace> </Framework> ``` Bug Fixes and Enhancements - Resolves #13 - Resolves #27 - Resolves #31 - Resolves #33
2017-02-18mdoc: some minor additions to mdoc tests.Joel Martinez
These files were inadvertently left out of PRs that were merged to master
2017-02-17mdoc: Resolves an issue with generic array extension methods. (#22)Joel Martinez
Closes #6
2017-02-16mdoc: Failing to load an assembly is no longer a fatal error. (#23)Joel Martinez
In some cases, for example when running in "frameworks" mode (ie. https://github.com/mono/api-doc-tools/pull/18), you might have non-managed .dlls in the directory. This change allows mdoc to simply write the fact that it couldn't load the assembly, and continue doing work. Resolves #7 Potentially provides a temporary workaround for #8, #9
2016-10-08Merge pull request #2377 from joelmartinez/docs-multiassembly-extension-fixJonathan Pryor
[mdoc] Extension method crash fix, removes -multiassembly
2016-10-08[corlib] Fix Delegate.Combine() to throw on non-matching typesAlexander Köplinger
This was inadvertently removed in https://github.com/mono/mono/commit/611a43ee0f672adbac3e25dc77731843a3d10cf1 from MulticastDelegate.CombineImpl(). Add the type check back in the Delegate base class, we already do the same in Remove(). Add unit tests to cover the behavior to the corlib test suite. (reverted from commit f29878dc713f4e148fe0a1e703fae8929e6fb6e0) Needed to update some monodoc tests to match that an exception is now thrown again.
2016-10-08Merge pull request #2333 from joelmartinez/docs-classic-fixJonathan Pryor
[mdoc] Added -api-style parameter.
2016-10-08Merge pull request #2282 from joelmartinez/docs-multiassembly-fixMiguel de Icaza
[mdoc] Improved error handling for multiassembly.
2016-10-08[mdoc] Update expected test results after private members change in mscorlibMarek Safar