-
Notifications
You must be signed in to change notification settings - Fork 307
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
base: master
Are you sure you want to change the base?
Домашка Зайцев ДА #260
Conversation
public class CircularCloudLayouter_Tests | ||
{ | ||
|
||
private CircularCloudLayouter CCL; |
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.
Не надо, пж, аббревиатуры. Ладно еще неполное имя, но вот так ни в коем случае
var testResult = TestContext.CurrentContext.Result.Outcome; | ||
var testName = TestContext.CurrentContext.Test.Name; | ||
if (Equals(testResult, ResultState.Failure) || | ||
Equals(testResult == ResultState.Error)) |
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.
Для чего вот эта штука? Думаю, тут при любых обстоятельствах false
будет. Наверное, должна быть ,
вместо ==
var image = new Bitmap(Width, Height); | ||
var g = Graphics.FromImage(image); | ||
var pen = new Pen(Brushes.AliceBlue, 2); | ||
var count = 0; |
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.
Выглядит ненужной
using TagsCloudVisualization; | ||
|
||
var random = new Random(); | ||
var Sizes = new List<Size>(); |
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.
sizes
} | ||
|
||
Sizes = Sizes.OrderByDescending(s => s.Width * s.Height).ToList(); | ||
var Layouter = new CircularCloudLayouter(new Point(400, 400)); |
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.
layouter
public void PutNextRectangle_RectanglesDoesNotIntersect() | ||
{ | ||
var Sizes = new List<Size>(); | ||
for (int i = 10; i < 100; i += 10) |
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.
var
{ | ||
public class ImageCreater | ||
{ | ||
private readonly int Width; |
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.
Либо это должно быть свойством, либо называться _width
/ width
No description provided.