Example #1
0
        public void DrawIsocelesTriangle()
        {
            ShapeProject.Shape iT = new IsocelesTriangle("Isoceles Triangle", 10, 5);

            var actual1 = iT.GetName();
            var actual2 = iT.GetArea();

            _output.WriteLine(actual1);
            _output.WriteLine(actual2.ToString(CultureInfo.CurrentCulture));
            Assert.Equal("My Parent is triangle: Isoceles Triangle", actual1);
            Assert.Equal(25, actual2);
        }
Example #2
0
        public void IsIsoscelesTriangle_TwoSidesAreEqual_True()
        {
            IsocelesTriangle testIsocelesTriangle = new IsocelesTriangle();

            Assert.AreEqual(true, testIsocelesTriangle.IsIsocelesTriangle(2, 2, 1));
        }