first unit test
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Shapes
|
||||
@@ -11,21 +9,19 @@ namespace Shapes
|
||||
[KnownType(typeof(CompositeShape))]
|
||||
public abstract class Shape
|
||||
{
|
||||
[DataMember]
|
||||
public virtual List<Point> Points { get; internal set; }
|
||||
|
||||
[DataMember]
|
||||
public abstract Color Fill { get; set; }
|
||||
[DataMember]
|
||||
public abstract Color Stroke { get; set; }
|
||||
[DataMember]
|
||||
protected internal bool CompositeShape { get; set; }
|
||||
|
||||
public Shape()
|
||||
{
|
||||
CompositeShape = false;
|
||||
}
|
||||
|
||||
[DataMember] public virtual List<Point> Points { get; internal set; }
|
||||
|
||||
[DataMember] public abstract Color Fill { get; set; }
|
||||
|
||||
[DataMember] public abstract Color Stroke { get; set; }
|
||||
|
||||
[DataMember] protected internal bool CompositeShape { get; set; }
|
||||
|
||||
public abstract double ComputeArea();
|
||||
|
||||
|
||||
@@ -33,6 +29,5 @@ namespace Shapes
|
||||
|
||||
public abstract void Save(Stream stream);
|
||||
public abstract void Draw(Stream stream);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user