Example #1
0
        public void ShouldNotMatch_Blue_White()
        {
            //assign
            IColor white     = new ColorWhite();
            IColor blueColor = new ColorBlue();
            //act
            bool matches = blueColor.Matches(white);

            //assert
            matches.Should().BeFalse();
        }
Example #2
0
        public void ShouldNotMatch_Blue_Green()
        {
            //assign
            IColor blue  = new ColorBlue();
            IColor green = new ColorGreen();
            //act
            bool matches = blue.Matches(green);

            //assert
            matches.Should().BeFalse();
        }
Example #3
0
        public void ShouldNotMatch_Blue_Red()
        {
            //assign
            IColor redColor  = new ColorRed();
            IColor blueColor = new ColorBlue();
            //act
            bool matches = blueColor.Matches(redColor);

            //assert
            matches.Should().BeFalse();
        }
Example #4
0
        public void ShouldMatch_Blue_Blue()
        {
            //assign
            IColor blueColor2 = new ColorBlue();
            IColor blueColor1 = new ColorBlue();
            //act
            bool matches = blueColor1.Matches(blueColor2);

            //assert
            matches.Should().BeTrue();
        }