Beispiel #1
0
        public void Equals_SameInstance_True()
        {
            // arrange
            var a = new MultiplierPathString("Foo");

            // act
            bool result = a.Equals(a);

            // assert
            Assert.True(result);
        }
Beispiel #2
0
        public void Equals_StringDifferentValue_False()
        {
            // arrange
            var a = new MultiplierPathString("Foo");
            var b = "Bar";

            // act
            bool result = a.Equals(b);

            // assert
            Assert.False(result);
        }
Beispiel #3
0
        public void Equals_StringWithSameValue_True()
        {
            // arrange
            var a = new MultiplierPathString("Foo");
            var b = "Foo";

            // act
            bool result = a.Equals(b);

            // assert
            Assert.True(result);
        }
Beispiel #4
0
        public void EqualsIgnoreCasing_MultiplierPathStringWithDifferentCasing_True()
        {
            // arrange
            var a = new MultiplierPathString("FOO");
            var b = new MultiplierPathString("foo");

            // act
            bool result = a.Equals(b, StringComparison.OrdinalIgnoreCase);

            // assert
            Assert.True(result);
        }