-
Notifications
You must be signed in to change notification settings - Fork 23
Oleg lifanov #54
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
base: Oleg_Lifanov
Are you sure you want to change the base?
Oleg lifanov #54
Conversation
CourseApp/Transport.cs
Outdated
| { | ||
| private int passangers; | ||
| private int dlina; | ||
| private int vodoizmeschenie; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не ко всему транспорту применимо водоизмещение, тем более что есть класс ship,
CourseApp/Transport.cs
Outdated
| private int dlina; | ||
| private int vodoizmeschenie; | ||
|
|
||
| public Transport() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А заем пустой конструктор? другие не в даом классе определены - и этот в данном случае не нужен
CourseApp/Ship.cs
Outdated
| Vodoizmeschenie = 100; | ||
| } | ||
|
|
||
| public Ship(int b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Смените имя переменой - что за b?
CourseApp/Ship.cs
Outdated
| Vodoizmeschenie = 100; | ||
| } | ||
|
|
||
| public Ship(int a, int b, int c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
То же самое - что за а б и c ? они должны нести нормальную смысловую нагрузку
CourseApp/Ship.cs
Outdated
|
|
||
| public Ship(int b) | ||
| { | ||
| Passangers = 25; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Этот конструктор должен вызывать более общий вид конструктора, пробросив в него параметры
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Простите но не понимаю что здесь требуется сделать
jskonst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Чем Ship от Kater отличаются? - почти ничем, может только info и vid - остальное - в базовый класс, если чем-то еще отличаются - ну ок. Добавьте submarine
| using CourseApp; | ||
|
|
||
| namespace CourseApp.Test | ||
| namespace CourseApp.Tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Переименуйте файлы тестов - чтобы было ясно кого ои тестируют
| [Fact] | ||
| public void Test10() | ||
| { | ||
| Ship admiral = new Ship(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Имя теста должно отражать то, что тест проверяет
CourseApp.Tests/UnitTest2.cs
Outdated
| public void Test10() | ||
| { | ||
| Ship admiral = new Ship(); | ||
| var passangers = admiral.Passangers; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Уберите эти промежуточные переменные - зачем они вам?
CourseApp.Tests/UnitTest4.cs
Outdated
| [Fact] | ||
| public void Test15() | ||
| { | ||
| Ship admiral = new Ship(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Что за тест и что проверяет? не массив ли тут хотели?
No description provided.