示例#1
0
        public void TestTrigonSquare()
        {
            var defect = 0.00;
            //defect = 0.01;
            var c = new Trigon(3, 4, 5);
            var x = Math.Round(c.GetSquare(), 3);
            var y = 6 + defect;

            Assert.AreEqual(x, y);
        }
示例#2
0
        public void TestTrigonNormal()
        {
            var defect = 0.00;
            //defect = 0.01; //Uncomment Me!
            var c   = new Trigon(3, 4, 5 + defect);
            var yes = c.Sides.Exists(
                a => a.L2 ==
                a.Neighbors.Sum(b => b.L2));

            Assert.AreEqual(true, yes);
        }
示例#3
0
 void Start()
 {
     aa = this;
     SetProperty();
 }