public void TestGetters()
        {
            region = new Region(2, 6, +1);

            Assert.AreEqual(2, region.Start);
            Assert.AreEqual(6, region.End);
            Assert.AreEqual(4, region.CenterPosition);
            Assert.AreEqual(5, region.Length);
            Assert.AreEqual(1, region.Strand);
        }
        public void TestSetGet()
        {
            region = new Region();

            region.Start = 2;
            region.End = 5;

            Assert.AreEqual(2, region.Start);
            Assert.AreEqual(5, region.End);
            Assert.AreEqual(3, region.CenterPosition);
            Assert.AreEqual(4, region.Length);
            Assert.AreEqual(0, region.Strand);

        }
        public void TestSet()
        {
            region = new Region(); //Reset our region back to a new obj

            Assert.AreEqual(0, region.Start);
            Assert.AreEqual(0, region.End);
            Assert.AreEqual(1, region.Length);
            Assert.AreEqual(0, region.Strand);

            region.Set(3, 6, +1);

            Assert.AreEqual(3, region.Start);
            Assert.AreEqual(6, region.End);
            Assert.AreEqual(4, region.CenterPosition);
            Assert.AreEqual(4, region.Length);
            Assert.AreEqual(1, region.Strand);
        }
        public void TestToString()
        {
            region = new Region(2, 6, +1);

            Assert.AreEqual("{ 2, 6, + }", region.ToString());
        }
        public void TestIsInside()
        {
            region = new Region(2, 6, +1);

            Assert.AreEqual(true, region.IsInside(2));
            Assert.AreEqual(true, region.IsInside(6));
            Assert.AreEqual(true, region.IsInside(3));
            Assert.AreEqual(false, region.IsInside(1));
            Assert.AreEqual(false, region.IsInside(7));
        }
 public void SetUp()
 {
     region = new Region(3, 6, +1);
 }