Добавил тест для прямоугольника

This commit is contained in:
Evgeny Redikultsev
2022-06-21 22:07:42 +05:00
parent 068b865a89
commit 6d0f2136e3
24 changed files with 389 additions and 11 deletions

View File

@@ -8,8 +8,8 @@ namespace StructureHelperLogics.Data.Shapes
public class Center : ICenter
{
/// <inheritdoc />
public double CenterX { get; set; }
public double X { get; set; }
/// <inheritdoc />
public double CenterY { get; set; }
public double Y { get; set; }
}
}

View File

@@ -14,11 +14,11 @@ namespace StructureHelperLogics.Data.Shapes
/// Coordinate of center of rectangle by local axis X, m
/// Координата центра вдоль локальной оси X, м
/// </summary>
double CenterX { get;}
double X { get;}
/// <summary>
/// Coordinate of center of rectangle by local axis Y, m
/// Координата центра вдоль локальной оси Y, м
/// </summary>
double CenterY { get;}
double Y { get;}
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StructureHelperLogics.Data.Shapes
{
public interface ICenterShape
{
ICenter Center {get;}
IShape Shape { get;}
}
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StructureHelperLogics.Data.Shapes
{
public interface ICircle : IShape
{
double Diameter { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StructureHelperLogics.Data.Shapes
{
public interface IPoint : IShape
{
double Area { get; set; }
}
}

View File

@@ -4,7 +4,7 @@ using System.Text;
namespace StructureHelperLogics.Data.Shapes
{
public interface IRectangle
public interface IRectangle : IShape
{
/// <summary>
/// Width of rectangle, m

View File

@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StructureHelperLogics.Data.Shapes
{
public interface IShape
{
}
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StructureHelperLogics.Data.Shapes
{
public class Point : IPoint
{
public double Area { get; set; }
}
}