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); }
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); }
void Start() { aa = this; SetProperty(); }