Christian's Triangle

ChristiansTriangle.png

ConnectingTheDots

using System.Collections.Generic;
using SpartanUnit;
using OpenHopla.Geometry;
 
namespace OpenHopla.UnitTests.Root.Geometry
{
    class TriangleTesterShould : TestSuite
    {
        public TriangleTesterShould()
        {
            this.TestCases.Add(this.CorrectlyClassifyChristiansTriangle);
        }
 
        /// <summary>
        /// This test case resembles one John Spurgeon and his Little Brother created
        /// on February 22, 2012. It asserts that ChristiansTriangle HasPotential to
        /// excite Passion in students for Technology, The Tao of Testing, and Math.
        /// </summary>
        public void CorrectlyClassifyChristiansTriangle()
        {
            TriangleTester triangleTester = new TriangleTester();
            List<OrderedPair> dots = new List<OrderedPair>();
            dots.Add(new OrderedPair(BBBS, ChristiansTriangle));
            dots.Add(new OrderedPair(HBR, RethinkingSchool));
            dots.Add(new OrderedPair(VCS, PonderThis));
            Triangle ChristiansTriangle = new Triangle(dots);
            Assert.True(triangleTester.HasPotential(ChristiansTriangle));
        }
    }
}

See also: http://www.intel.com/about/corporateresponsibility/education/index.htm

Last edited Feb 23, 2012 at 12:39 PM by JohnPSpurgeon, version 11

Comments

No comments yet.