Пример #1
0
        public void ShouldNotEquate_Blue_Red()
        {
            //assign
            ICrystal blueCrystal = new BlueCrystal();
            ICrystal redCrystal  = new RedCrystal();

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

            //assert
            matches.Should().BeFalse();
        }
Пример #2
0
        public void ShouldNotEquate_Red_White()
        {
            //assign
            ICrystal whiteCrystal = new WhiteCrystal();
            ICrystal redCrystal   = new RedCrystal();

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

            //assert
            matches.Should().BeFalse();
        }
Пример #3
0
        public void ShouldEquate_RedCrystals()
        {
            //assign
            ICrystal crystal1 = new RedCrystal();
            ICrystal crystal2 = new RedCrystal();

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

            //assert
            matches.Should().BeTrue();
        }
Пример #4
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();
        }