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

Домашка Зайцев ДА #260

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Emi1337-ops
Copy link

No description provided.

public class CircularCloudLayouter_Tests
{

private CircularCloudLayouter CCL;

Choose a reason for hiding this comment

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

Не надо, пж, аббревиатуры. Ладно еще неполное имя, но вот так ни в коем случае

var testResult = TestContext.CurrentContext.Result.Outcome;
var testName = TestContext.CurrentContext.Test.Name;
if (Equals(testResult, ResultState.Failure) ||
Equals(testResult == ResultState.Error))

Choose a reason for hiding this comment

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

Для чего вот эта штука? Думаю, тут при любых обстоятельствах false будет. Наверное, должна быть , вместо ==

var image = new Bitmap(Width, Height);
var g = Graphics.FromImage(image);
var pen = new Pen(Brushes.AliceBlue, 2);
var count = 0;

Choose a reason for hiding this comment

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

Выглядит ненужной

using TagsCloudVisualization;

var random = new Random();
var Sizes = new List<Size>();

Choose a reason for hiding this comment

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

sizes

}

Sizes = Sizes.OrderByDescending(s => s.Width * s.Height).ToList();
var Layouter = new CircularCloudLayouter(new Point(400, 400));

Choose a reason for hiding this comment

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

layouter

public void PutNextRectangle_RectanglesDoesNotIntersect()
{
var Sizes = new List<Size>();
for (int i = 10; i < 100; i += 10)

Choose a reason for hiding this comment

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

var

{
public class ImageCreater
{
private readonly int Width;

Choose a reason for hiding this comment

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

Либо это должно быть свойством, либо называться _width / width

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