示例#1
0
        public void A_gems_should_be_instantiated_and_have_values()
        {
            var gems = Gems.GetAllGemsWithGold().ToList();

            foreach (var gem in gems)
            {
                gem.ToString().Should().Be(gem.GetType().Name);
                gem.GetImage().Should().NotBeNull();
                gem.IsGold.Should().Be(gem.ToString().Equals("Gold"));
            }
        }