Exemplo n.º 1
0
        public void EnclosedArea_toGDL_Test_With_Variables_Set()
        {
            // The type we are testing
            EnclosedArea target = new EnclosedArea()
            {
                Max = 3,
                Min = 1
            };

            // Since max/min were set in constructor, resulting values and string output of toGDL should be 1..3
            bool expected = true;
            bool actual = target.ToGDL().Equals("Enclosed Area: 1..3");

            //Assert they are equal
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void EnclosedArea_toGDL_Test_With_Nothing_Set()
        {
            // The type we are testing
            EnclosedArea target = new EnclosedArea();

            // Since the nothing was set in constructor, resulting values and string output of toGDL should be 0..0
            bool expected = true;
            bool actual = target.ToGDL().Equals("Enclosed Area: 0..0");

            //Assert they are equal
            Assert.AreEqual(expected, actual);
        }