コード例 #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_Blue_Red()
        {
            //assign
            ICrystal blueCrystal = new BlueCrystal();
            ICrystal redCrystal  = new RedCrystal();

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

            //assert
            matches.Should().BeFalse();
        }
コード例 #3
0
        public void ShouldEquate_BlueCrystals()
        {
            //assign
            ICrystal crystal1 = new BlueCrystal();
            ICrystal crystal2 = new BlueCrystal();

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

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