Exemplo n.º 1
0
        public void AmenityAreaIsCorrect()
        {
            var result = AmenitySpace.Create(surface, 100, 200);

            double area = Math.Round(result["amenitySrf"].Area);

            Assert.AreEqual(60000, area);
        }
Exemplo n.º 2
0
        public void RemainingSurfaceIsCorrect()
        {
            var result = AmenitySpace.Create(surface, 100, 200);

            double area = Math.Round(result["remainSrf"].Area);

            Assert.AreEqual(30000, area);
        }
Exemplo n.º 3
0
        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"));
        }