Skip to content

Commit 1a842ff

Browse files
committed
Trim down of files
1 parent a9b3061 commit 1a842ff

File tree

5 files changed

+24
-18
lines changed

5 files changed

+24
-18
lines changed

docs/ADR/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@ All the ADRs have been approved and are considered final decisions for the proje
2626

2727
## Unsupported Features
2828

29-
- [Support for Extension Methods (WIP)](Unsupported/SupportForExtensionMethods.md) - Decision on supporting extension methods in the mocking framework.
30-
- [Support for Sealed Classes (WIP)](Unsupported/SupportForSealedClasses.md) - Decision on supporting sealed classes in the mocking framework.
31-
- [Support for Static Members (WIP)](Unsupported/SupportForStaticMembers.md) - Decision on supporting static members in the mocking framework.
29+
- [Unsupported Features](Unsupported/UnsupportedFeatures.md) - Decision on which features not to support.

docs/ADR/Unsupported/SupportForExtensionMethods.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/ADR/Unsupported/SupportForSealedClasses.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/ADR/Unsupported/SupportForStaticMembers.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Unsupported features
2+
3+
## Context
4+
5+
In order to keep true to how mocking works some features will not be supported.
6+
7+
## Decision
8+
9+
**Extension methods** are not supported due to their nature. Extension methods are static methods that are called as if they were instance methods of the extended type.
10+
11+
**Sealed classes** are not supported since they can not be inherited from and such do not fit how the framework works.
12+
13+
**Static members** and **Static classes** are not supported due to the way the framework works.
14+
15+
## Consequences
16+
17+
### Positive:
18+
19+
- **No need for magic**: Mocking these features would require breaking the standard supported functionality.
20+
21+
### Negative:
22+
23+
- **No magic**: Some functionality can be harder to test but if you need to test this maby you have some other issues.

0 commit comments

Comments
 (0)