Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }