Exemplo n.º 1
0
        public void TestValueEquals()
        {
            const string error = "Invalid return from ValueEquals method";

            TestSegment s = new TestSegment();

            Assert.IsTrue(this.ValueEquals(s), error);

            string testStr = "test";

            s.ValueName = testStr;
            Assert.IsFalse(this.ValueEquals(s), error);
            this.ValueName = s.ValueName;
            Assert.IsTrue(this.ValueEquals(s), error);

            s.ValueType = testStr;
            Assert.IsFalse(this.ValueEquals(s), error);
            this.ValueType = s.ValueType;
            Assert.IsTrue(this.ValueEquals(s), error);

            s.Namespace = testStr;
            Assert.IsFalse(this.ValueEquals(s), error);
            this.Namespace = s.Namespace;
            Assert.IsTrue(this.ValueEquals(s), error);

            s.Schema = testStr;
            Assert.IsFalse(this.ValueEquals(s), error);
            this.Schema = s.Schema;
            Assert.IsTrue(this.ValueEquals(s), error);
        }
Exemplo n.º 2
0
        public void TestValueEquals()
        {
            const string error = "Invalid return from ValueEquals method";

            TestSegment s = new TestSegment();

            Assert.IsTrue(this.ValueEquals(s), error);

            string testStr = "test";

            s.ValueName = testStr;
            Assert.IsFalse(this.ValueEquals(s), error);
            this.ValueName = s.ValueName;
            Assert.IsTrue(this.ValueEquals(s), error);

            s.ValueType = testStr;
            Assert.IsFalse(this.ValueEquals(s), error);
            this.ValueType = s.ValueType;
            Assert.IsTrue(this.ValueEquals(s), error);

            s.Namespace = testStr;
            Assert.IsFalse(this.ValueEquals(s), error);
            this.Namespace = s.Namespace;
            Assert.IsTrue(this.ValueEquals(s), error);

            s.Schema = testStr;
            Assert.IsFalse(this.ValueEquals(s), error);
            this.Schema = s.Schema;
            Assert.IsTrue(this.ValueEquals(s), error);
        }