예제 #1
0
        public void ShouldNotEquate_Blue_Green()
        {
            //assign
            ICrystal blueCrystal  = new BlueCrystal();
            ICrystal greenCrystal = new GreenCrystal();

            //act
            bool matches = blueCrystal.Matches(greenCrystal);

            //assert
            matches.Should().BeFalse();
        }
예제 #2
0
        public void ShouldNotEquate_Red_Green()
        {
            //assign
            ICrystal redCrystal   = new RedCrystal();
            ICrystal greenCrystal = new GreenCrystal();

            //act
            bool matches = redCrystal.Matches(greenCrystal);

            //assert
            matches.Should().BeFalse();
        }
예제 #3
0
        public void ShouldEquate_GreenCrystals()
        {
            //assign
            ICrystal crystal1 = new GreenCrystal();
            ICrystal crystal2 = new GreenCrystal();

            //act
            bool matches = crystal1.Matches(crystal2);

            //assert
            matches.Should().BeTrue();
        }
예제 #4
0
        public void ShouldNotEquate_Green_White()
        {
            //assign
            ICrystal whiteCrystal = new WhiteCrystal();
            ICrystal greenCrystal = new GreenCrystal();

            //act
            bool matches = greenCrystal.Matches(whiteCrystal);

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