Example #1
0
 public void RunBeforeEachTest()
 {
     TestMarkupItem tmi = new TestMarkupItem();
     this.Name = tmi.Name;
     this.IsDefaultForEntity = tmi.IsDefaultForEntity;
     this.InUseCount = 0;
 }
Example #2
0
        ///<exclude/>
        [SetUp] public void RunBeforeEachTest()
        {
            TestMarkupItem tmi = new TestMarkupItem();

            this.Name = tmi.Name;
            this.IsDefaultForEntity = tmi.IsDefaultForEntity;
            this.InUseCount         = 0;
        }
Example #3
0
        public void TestValueEquals()
        {
            const string error = "Invalid return from ValueEquals method";

            Assert.IsFalse(this.ValueEquals(null), error);
            Assert.IsFalse(this.ValueEquals(error), error);

            TestMarkupItem tmi = new TestMarkupItem();

            Assert.IsTrue(this.ValueEquals(this), error);
            Assert.IsTrue(this.ValueEquals(tmi), error);
        }
Example #4
0
        public void TestEquals()
        {
            const string error = "Invalid return from Equals method";

            Assert.IsFalse(this.Equals(null), error);
            Assert.IsFalse(this.Equals(error), error);

            TestMarkupItem tmi = new TestMarkupItem();

            Assert.IsTrue(this.Equals(this), error);
            Assert.IsTrue(this.Equals(tmi), error);

            tmi.Name = "test";
            Assert.IsFalse(this.Equals(tmi), error);
            this.Name = tmi.Name;
            Assert.IsTrue(this.Equals(tmi), error);

            this.IsDefaultForEntity = false;
            tmi.IsDefaultForEntity  = true;
            Assert.IsFalse(this.Equals(tmi), error);
            this.IsDefaultForEntity = tmi.IsDefaultForEntity;
            Assert.IsTrue(this.Equals(tmi), error);
        }
Example #5
0
        public void TestValueEquals()
        {
            const string error = "Invalid return from ValueEquals method";
            Assert.IsFalse(this.ValueEquals(null), error);
            Assert.IsFalse(this.ValueEquals(error), error);

            TestMarkupItem tmi = new TestMarkupItem();

            Assert.IsTrue(this.ValueEquals(this), error);
            Assert.IsTrue(this.ValueEquals(tmi), error);
        }
Example #6
0
        public void TestEquals()
        {
            const string error = "Invalid return from Equals method";

            Assert.IsFalse(this.Equals(null), error);
            Assert.IsFalse(this.Equals(error), error);

            TestMarkupItem tmi = new TestMarkupItem();

            Assert.IsTrue(this.Equals(this), error);
            Assert.IsTrue(this.Equals(tmi), error);

            tmi.Name = "test";
            Assert.IsFalse(this.Equals(tmi), error);
            this.Name = tmi.Name;
            Assert.IsTrue(this.Equals(tmi), error);

            this.IsDefaultForEntity = false;
            tmi.IsDefaultForEntity = true;
            Assert.IsFalse(this.Equals(tmi), error);
            this.IsDefaultForEntity = tmi.IsDefaultForEntity;
            Assert.IsTrue(this.Equals(tmi), error);
        }