public void AmenityAreaIsCorrect() { var result = AmenitySpace.Create(surface, 100, 200); double area = Math.Round(result["amenitySrf"].Area); Assert.AreEqual(60000, area); }
public void RemainingSurfaceIsCorrect() { var result = AmenitySpace.Create(surface, 100, 200); double area = Math.Round(result["remainSrf"].Area); Assert.AreEqual(30000, area); }
public void AmenitySpaceOutputDictionaryTest() { var result = AmenitySpace.Create(surface, 100, 200); // Check if the result of the Shortest path is a dictionary containing the keys "path" and "length" Assert.IsTrue(result.Keys.Contains("amenitySrf")); Assert.IsTrue(result.Keys.Contains("remainSrf")); }