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

            this.Name = tmi.Name;
            this.IsDefaultForEntity = tmi.IsDefaultForEntity;
            this.InUseCount         = 0;
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }