Exemplo n.º 1
0
        public void NotEquals()
        {
            ParameterizedStringPart part  = new ParameterizedStringPart("somedata");
            ParameterizedStringPart part2 = new ParameterizedStringPart("somedata2");

            Assert.IsFalse(part.Equals(part2));
            Assert.IsTrue(part != part2);
        }
Exemplo n.º 2
0
        public void Equals()
        {
            ParameterizedStringPart part = new ParameterizedStringPart("somedata");

            Assert.IsTrue(part.Equals(part));
            Assert.IsTrue(part == part);

            ParameterizedStringPart part2 = new ParameterizedStringPart("somedata");

            Assert.IsTrue(part.Equals(part2));
            Assert.IsTrue(part == part2);

            part = new ParameterizedStringPart("somename", "somevalue");
            Assert.IsTrue(part.Equals(part));
            Assert.IsTrue(part == part);

            part2 = new ParameterizedStringPart("somename", "somevalue");
            Assert.IsTrue(part.Equals(part2));
            Assert.IsTrue(part == part2);
        }
Exemplo n.º 3
0
        public void NotEqualsNull()
        {
            ParameterizedStringPart part = new ParameterizedStringPart("somedata");

            Assert.IsFalse(part.Equals(null));
            Assert.IsTrue(part != null);

            part = new ParameterizedStringPart("somename", "somedata");
            Assert.IsFalse(part.Equals(null));
            Assert.IsTrue(part != null);
        }
        public void Equals()
        {
            ParameterizedStringPart part = new ParameterizedStringPart("somedata");
            Assert.IsTrue(part.Equals(part));
            Assert.IsTrue(part == part);

            ParameterizedStringPart part2 = new ParameterizedStringPart("somedata");
            Assert.IsTrue(part.Equals(part2));
            Assert.IsTrue(part == part2);

            part = new ParameterizedStringPart("somename", "somevalue");
            Assert.IsTrue(part.Equals(part));
            Assert.IsTrue(part == part);

            part2 = new ParameterizedStringPart("somename", "somevalue");
            Assert.IsTrue(part.Equals(part2));
            Assert.IsTrue(part == part2);
        }
 public void NotEquals()
 {
     ParameterizedStringPart part = new ParameterizedStringPart("somedata");
     ParameterizedStringPart part2 = new ParameterizedStringPart("somedata2");
     Assert.IsFalse(part.Equals(part2));
     Assert.IsTrue(part != part2);
 }
        public void NotEqualsNull()
        {
            ParameterizedStringPart part = new ParameterizedStringPart("somedata");
            Assert.IsFalse(part.Equals(null));
            Assert.IsTrue(part != null);

            part = new ParameterizedStringPart("somename", "somedata");
            Assert.IsFalse(part.Equals(null));
            Assert.IsTrue(part != null);
        }