示例#1
0
        public void TouchPathLength_toGDL_Test_With_Nothing_Set()
        {
            // The type we are testing
            TouchPathLength target = new TouchPathLength();

            // Since the nothing was set in constructor, resulting value for max and min should be 0f
            bool expected = true;
            bool actual = target.ToGDL().Equals("Touch path length: 0..0");

            //Assert they are equal
            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void TouchPathLength_toGDL_Test_With_Min_Set()
        {
            // The type we are testing
            TouchPathLength target = new TouchPathLength()
            {
                Min = 1
            };

            // Since the min was set in the constructor, this should be reflected in the output string
            bool expected = true;
            bool actual = target.ToGDL().Equals("Touch path length: 1..0");

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