public void ShouldReturnCorrectSuperHappyCornersSumOfShapeCollection() { //Arrange var shapeCollection = new ShapeCollection(); shapeCollection.Add(new Triangle(2, 3) { Mood = MoodTypes.SuperHappy }); shapeCollection.Add(new Square(2) { Mood = MoodTypes.SuperHappy }); shapeCollection.Add(new Rectangle(4, 3) { Mood = MoodTypes.SuperHappy }); shapeCollection.Add(new Circle(5) { Mood = MoodTypes.SuperHappy }); //Act //Assert Assert.AreEqual(shapeCollection.CornerSum(), 11 * 3 + 10); }
public void ShouldReturnCorrectCornersSumOfShapeCollection() { //Arrange var shapeCollection = new ShapeCollection(); shapeCollection.Add(new Triangle(2, 3)); shapeCollection.Add(new Square(2)); shapeCollection.Add(new Rectangle(4, 3)); shapeCollection.Add(new Circle(4)); //Act //Assert Assert.AreEqual(shapeCollection.CornerSum(), 11); }