Skip to content

Vladislav savchenko#32

Merged
jskonst merged 23 commits into
ISUCT:Vladislav_Savchenkofrom
DeC0re:Vladislav_Savchenko
Dec 17, 2019
Merged

Vladislav savchenko#32
jskonst merged 23 commits into
ISUCT:Vladislav_Savchenkofrom
DeC0re:Vladislav_Savchenko

Conversation

@DeC0re
Copy link
Copy Markdown

@DeC0re DeC0re commented Nov 14, 2019

No description provided.

@DeC0re DeC0re changed the base branch from master to Vladislav_Savchenko November 15, 2019 05:30
Comment thread CourseApp.Tests/DemoTest.cs Outdated
Assert.Equal(res, new double[5]);
}
[Theory]
[InlineData(2.0, 1.2, 4.2, 0.6)]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔕 для 1 теста не надо такое писать - просто Fact, а все остальное внутри теста

Comment thread CourseApp.Tests/DemoTest.cs Outdated
var result = new int[resultA.Length];
foreach (var item in resultA)
{
result[k] = (int)Math.Floor(resultA[k]*1000);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем это умножение на 1000?

Comment thread CourseApp.Tests/DemoTest.cs Outdated
result[k] = (int)Math.Floor(resultA[k]*1000);
k++;
}
var exp = new int[] {24, 23, 21, 19, 17};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Для этой задачи можно проверить просто число элементов в массиве, при условии того, что сама функция протестирована

Comment thread CourseApp.Tests/DogTest.cs Outdated
{
Dog snech = new Dog();
Assert.Equal(
@" __ _
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я чего у вас собачку как скукожило?

Comment thread CourseApp/CourseApp.csproj Outdated
<TargetFramework>netcoreapp2.1</TargetFramework>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True верните

Comment thread CourseApp/Dog.cs
Comment thread CourseApp/Dog.cs Outdated
Pol = n;
if (Pol == "S")
{
Age = 12;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А где конструктор с теми параметрами, который я хочу - а вы мне генерируете собак пенсионного возраста ?

Comment thread CourseApp/Dog.cs Outdated

public void GetInfo()
{
Console.WriteLine($"Пол: {Pol} Возраст: {Age} Вес: {Weight}");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Замените getInfo на перекрытие toString

Comment thread .gitignore
@@ -1,206 +0,0 @@
# Download this file using PowerShell v3 under Windows with the following comand:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему gitignore удалили?

Comment thread CourseApp/Program.cs Outdated
}
return y;
}
public static double[] TaskB(double a, double[] x)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Уже переписывайте на использование списков

Comment thread CourseApp.Tests/CourseApp.Tests.csproj Outdated
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Верните True

Comment thread CourseApp.Tests/DemoTest.cs Outdated
public void Test1()
{
Assert.True(true);
Xunit.Assert.True(true);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? а зачем это изменение?

Comment thread CourseApp.Tests/DemoTest.cs Outdated

public void TestTaskA(double a, double xn, double xk, double dx)
{
var res = Program.TaskA(a, xn, xk, dx);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А тест нормального выполнения функции?

Comment thread CourseApp/CourseApp.csproj Outdated
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Верните True

Comment thread CourseApp/Dog.cs Outdated

public void AgeUp()
{
this.age++;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Устанавливать надо свойство а не поле

@jskonst jskonst merged commit 8597066 into ISUCT:Vladislav_Savchenko Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants