Esempio n. 1
0
        public void ShouldNotEquate_White_Red()
        {
            //assign
            ICrystal whiteCrystal = new WhiteCrystal();
            ICrystal redCrystal   = new RedCrystal();

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

            //assert
            matches.Should().BeFalse();
        }
Esempio n. 2
0
        public void ShouldEquate_WhiteCrystals()
        {
            //assign
            ICrystal crystal1 = new WhiteCrystal();
            ICrystal crystal2 = new WhiteCrystal();

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

            //assert
            matches.Should().BeTrue();
        }
Esempio n. 3
0
        public void ShouldNotEquate_White_Green()
        {
            //assign
            ICrystal whiteCrystal = new WhiteCrystal();
            ICrystal greenCrystal = new GreenCrystal();

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

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