コード例 #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();
        }