Exemplo n.º 1
0
        public void NameValue_Equals_NameValue_ExpectFalse()
        {
            var constructor = new NameValue("testName", "testValue");
            var other       = new NameValue("testNameOther", "testValueOther");
            var result      = constructor.Equals(other);

            Assert.IsFalse(result);
        }
Exemplo n.º 2
0
        public void NameValue_Equals_Object_ObjectDifferentType()
        {
            var constructor = new NameValue("testName", "testValue");
            var other       = new object();
            var result      = constructor.Equals(other);

            Assert.IsFalse(result);
        }
Exemplo n.º 3
0
        public void NameValue_Equals_NameValue_ConstructorEqualsOtherExpectTrue()
        {
            var constructor = new NameValue("testName", "testValue");
            var other       = constructor;
            var result      = constructor.Equals(other);

            Assert.IsTrue(result);
        }
Exemplo n.º 4
0
        public void NameValue_Equals_Object_isNullExpectFalse()
        {
            var constructor = new NameValue("testName", "testValue");
            var other       = new object();

            other = null;
            var result = constructor.Equals(other);

            Assert.IsFalse(result);
        }