Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update naming.md #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions documentation/src/naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ Table following table gives you the rules for each identifier.
| Method | PascalCase | | DrawSquare |
| Properties | PascalCase | | FirstName |
| Predicate method | PascalCase | Is\<Name\>, Has\<Name>, Are\<Name>, Have\<Name> | IsGreat, HasField |
| Public Member Variable | PascalCase | | Diameter |
| Public member variable | PascalCase | | Diameter |
| Protected member variable | camelCase | _\<name> | _tableIndex |
| Private member variable | camelCase | _\<name> | _adjacencyMatrix |
| Local variable | camelCase | | index, name, helpLabel |
| Global constant | PascalCase | | Pi, PrimeNumbers |
| Class constant | PascalCase | | FilePath |
| Enum type | PascalCase | | StatusType |
| Enum value | PascalCase | | RequiredValue |
| Lambda Parametrs | camelCase or lower-case letter | | cornerPoint, c, name, n |
| Lambda parameters | camelCase or lower-case letter | | cornerPoint, c, name, n |


## UI Elements
Expand All @@ -103,4 +103,4 @@ All delegate variables should be in camelCase without a prefix or postfix. All o

## Naming of Tests

The naming of tests must describe what the intended effect of the methods that are being tested, e.g. `ReturnsNullOnEmptySettings` or `ThrowsOnInvalidResponse`.
The naming of tests must describe what the intended effect of the methods that are being tested, e.g. `ReturnsNullOnEmptySettings` or `ThrowsOnInvalidResponse`.
Loading