Esempio n. 1
0
        public void Equals_EqualObjects_ReturnTrue()
        {
            // ARRANGE
            ScannedLocation one = new ScannedLocation()
            {
                Path = "foo"
            };
            ScannedLocation two = new ScannedLocation()
            {
                Path = "foo"
            };

            // ACT
            bool result = one.Equals(two);

            // ASSERT
            Assert.IsTrue(result);
        }
Esempio n. 2
0
        public void Equals_UnEqualPath_ReturnFalse()
        {
            // ARRANGE
            ScannedLocation one = new ScannedLocation()
            {
                Path = "foo"
            };
            ScannedLocation two = new ScannedLocation()
            {
                Path = "bar"
            };

            // ACT
            bool result = one.Equals(two);

            // ASSERT
            Assert.IsFalse(result);
        }