Exemplo n.º 1
0
        public void TestCreateResolution()
        {
            SetUp();
            InitSe();
            List <Tuple> dict = se.Dict();

            SetUp();
            builder.Resolution(0.5);
            InitSe();
            List <Tuple> compare = se.Dict();

            Assert.AreEqual(dict.ToString(), compare.ToString());

            SetUp();
            builder.Radius(1.5);
            InitSe();
            compare = se.Dict();
            Assert.AreEqual(dict.ToString(), compare.ToString());

            //Negative test
            SetUp();
            builder.Resolution(0.5);
            InitSe();
            se.SetName("break this");
            compare = se.Dict();
            Assert.IsFalse(dict.SequenceEqual(compare));
        }